FPSMS-frontend
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
727 B

  1. import React from "react";
  2. import {DetailScheduleLoading} from "./DetailScheduleLoading";
  3. import DSOverview from "./DetailScheduleSearchView";
  4. import { ScheduleType } from "@/app/api/scheduling";
  5. import { SearchProdSchedule } from "@/app/api/scheduling/actions";
  6. interface SubComponents {
  7. Loading: typeof DetailScheduleLoading;
  8. }
  9. type Props = {
  10. type: ScheduleType
  11. }
  12. const DetailScheduleWrapper: React.FC<Props> & SubComponents = async ({
  13. type
  14. }) => {
  15. const defaultInputs: SearchProdSchedule = {
  16. types: ["detailed", "manual"]
  17. }
  18. return <DSOverview type={type} defaultInputs={defaultInputs} />;
  19. };
  20. DetailScheduleWrapper.Loading = DetailScheduleLoading;
  21. export default DetailScheduleWrapper;