'use client';

import {
  getOpenResponsesAction,
  getOtherResponsesAction,
  getUserDoneResponsesAction,
  getUserInProgressResponsesAction,
} from '@kit/doctor/actions/table-data-fetching-actions';

import ResultsTableWrapper from './results-table-wrapper';

export default function DoctorDashboard() {
  return (
    <>
      <ResultsTableWrapper
        titleKey="doctor:openReviews"
        action={getOpenResponsesAction}
        queryKey="doctor-open-jobs"
      />
      <ResultsTableWrapper
        titleKey="doctor:myReviews"
        action={getUserInProgressResponsesAction}
        queryKey="doctor-in-progress-jobs"
      />
      <ResultsTableWrapper
        titleKey="doctor:completedReviews"
        action={getUserDoneResponsesAction}
        queryKey="doctor-done-jobs"
      />
      <ResultsTableWrapper
        titleKey="doctor:otherReviews"
        action={getOtherResponsesAction}
        queryKey="doctor-other-jobs"
      />
    </>
  );
}
