import { getUserInProgressResponsesAction } from '@kit/doctor/actions/table-data-fetching-actions';
import { PageBody, PageHeader } from '@kit/ui/page';
import ResultsTableWrapper from '../_components/results-table-wrapper';
import { DoctorGuard } from '../_components/doctor-guard';

async function MyReviewsPage() {
  return (
    <>
      <PageHeader />
      <PageBody>
        <ResultsTableWrapper
          titleKey="doctor:myReviews"
          action={getUserInProgressResponsesAction}
          queryKey="doctor-in-progress-jobs"
        />
      </PageBody>
    </>
  );
}

export default DoctorGuard(MyReviewsPage);
