import { fetchAllItems } from "@/app/api/settings/item";
import { RoughScheduleLoading } from "./RoughScheduleLoading";
import RSSOverview from "@/components/RoughScheduleSetting/RoughScheduleSetting";

interface SubComponents {
  Loading: typeof RoughScheduleLoading;
}

type Props = {
  // type: TypeEnum;
};

const RoughScheduleSettingWrapper: React.FC & SubComponents = async ({
                                                                       // type,
                                                                   }) => {
    // console.log(type)
    var result = await fetchAllItems()
    return <RSSOverview items={result} />;
};

RoughScheduleSettingWrapper.Loading = RoughScheduleLoading;

export default RoughScheduleSettingWrapper;
