FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
765 B

  1. import { fetchAllItems, } from "@/app/api/settings/item";
  2. import {RoughScheduleLoading} from "./RoughScheduleLoading";
  3. import RSSOverview from "@/components/RoughScheduleSetting/RoughScheduleSetting";
  4. interface SubComponents {
  5. Loading: typeof RoughScheduleLoading;
  6. }
  7. type Props = {
  8. // type: TypeEnum;
  9. };
  10. const RoughScheduleSettingWrapper: ({}: {}) => Promise<JSX.Element> = async ({
  11. // type,
  12. }) => {
  13. // console.log(type)
  14. var result = await fetchAllItems()
  15. return <RSSOverview items={result} />;
  16. };
  17. RoughScheduleSettingWrapper.Loading = RoughScheduleLoading;
  18. export default RoughScheduleSettingWrapper;