import { useDirectorDashboardPage } from '@/business/director-dashboard/hooks';
import { DirectorDashboardView } from '@/components/director-dashboard/DirectorDashboardView';
import type { ModuleId } from '@/shared/types/app';


interface DirectorDashboardProps {
  setCurrentModule: (id: ModuleId) => void;
}

const DirectorDashboard = ({ setCurrentModule }: DirectorDashboardProps) => {
  const page = useDirectorDashboardPage();

  return (
    <DirectorDashboardView
      page={page}
      onOpenModule={setCurrentModule}
    />
  );
};

export default DirectorDashboard;
