61 lines
2.0 KiB
TypeScript
61 lines
2.0 KiB
TypeScript
import type { DashboardSearchParams } from "@/entities/statistics/model/dashboard/dashboard-interface";
|
|
import type { ScheduleInfoSearchParams } from "@/entities/statistics/model/dashboard/schedule-info-interface";
|
|
|
|
import { NoticePanel } from "../ui/panels/notice-panel";
|
|
import { ScheduleCalendarPanel } from "../ui/panels/schedule-calendar-panel";
|
|
import { ScheduleInfoPanel } from "../ui/panels/schedule-info-panel";
|
|
import { StatsSubmissionPanel } from "../ui/panels/stats-submission-panel";
|
|
import { UnSubmitPanel } from "../ui/panels/unsubmit-panel";
|
|
// import { VrfcErrPanel } from "../ui/panels/vrfc-err-panel";
|
|
import { VrfcReportPanel } from "../ui/panels/vrfc-report-panel";
|
|
|
|
import type { PanelItem } from "./types";
|
|
|
|
interface GetInitialPanelsParams {
|
|
dashboardParams: DashboardSearchParams | null;
|
|
scheduleInfoParams: ScheduleInfoSearchParams | null;
|
|
}
|
|
|
|
export function getInitialPanels({
|
|
dashboardParams,
|
|
scheduleInfoParams,
|
|
}: GetInitialPanelsParams): PanelItem[] {
|
|
return [
|
|
{
|
|
id: "panel-a",
|
|
component: <StatsSubmissionPanel params={dashboardParams} />,
|
|
className: "",
|
|
},
|
|
{
|
|
id: "panel-b",
|
|
component: <ScheduleInfoPanel params={scheduleInfoParams} />,
|
|
className: "",
|
|
},
|
|
{
|
|
id: "panel-c",
|
|
component: <NoticePanel />,
|
|
className: "",
|
|
},
|
|
// {
|
|
// id: "panel-d",
|
|
// component: <VrfcErrPanel params={dashboardParams} />,
|
|
// className: "",
|
|
// },
|
|
{
|
|
id: "panel-d",
|
|
component: <UnSubmitPanel params={dashboardParams} />,
|
|
className: "",
|
|
},
|
|
{
|
|
id: "panel-e",
|
|
component: <VrfcReportPanel params={dashboardParams} />,
|
|
className: "",
|
|
},
|
|
{
|
|
id: "panel-f",
|
|
component: <ScheduleCalendarPanel />,
|
|
className: "",
|
|
},
|
|
];
|
|
}
|