import React from 'react';
import {Navigation} from '@interfaces/navigation';
import {Screens} from '@shared/constants';

import {EventPostDetailWithComments} from './EventPostDetailWithComments';

function EventPostDetail({
  route: {params},
}: Navigation<Screens.EVENT_POST_DETAIL>) {
  const {eventId, postId, autoFocus} = params;

  return (
    <EventPostDetailWithComments
      eventId={eventId}
      postId={postId}
      autoFocus={autoFocus}
    />
  );
}

export default EventPostDetail;
