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.
 
 

19 line
517 B

  1. import React from "react";
  2. import QcItemSearchLoading from "./QcItemSearchLoading";
  3. import QcItemSearch from "./QcItemSearch";
  4. import { fetchQcItems } from "@/app/api/settings/qcItem";
  5. interface SubComponents {
  6. Loading: typeof QcItemSearchLoading;
  7. }
  8. const QcItemSearchWrapper: React.FC & SubComponents = async () => {
  9. const [qcItems] = await Promise.all([fetchQcItems()]);
  10. return <QcItemSearch qcItems={qcItems} />;
  11. };
  12. QcItemSearchWrapper.Loading = QcItemSearchLoading;
  13. export default QcItemSearchWrapper;