import { useGetPartyEvent } from 'src/actions/party-event';
import { CONFIG } from 'src/global-config';
import { useParams } from 'src/routes/hooks';
import { PartyEventEditView } from 'src/sections/party-event/view';

// ----------------------------------------------------------------------

const metadata = { title: `PartyEvent edit | Dashboard - ${CONFIG.appName}` };

export default function Page() {
  const { id = '' } = useParams();

  const { partyEvent } = useGetPartyEvent(id);

  return (
    <>
      <title>{metadata.title}</title>

      <PartyEventEditView partyEvent={partyEvent} />
    </>
  );
}
