import { PageBody, PageHeader } from '@kit/ui/page';

import { getUserDoneResponsesAction } from '@kit/doctor/actions/table-data-fetching-actions';
import ResultsTableWrapper from '../_components/results-table-wrapper';
import { DoctorGuard } from '../_components/doctor-guard';

async function CompletedJobsPage() {
  return (
    <>
      <PageHeader />
      <PageBody>
        <ResultsTableWrapper
          titleKey="doctor:completedReviews"
          action={getUserDoneResponsesAction}
          queryKey="doctor-done-jobs"
        />
      </PageBody>
    </>
  );
}

export default DoctorGuard(CompletedJobsPage);
