FPSMS-frontend
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

QcItemSearchWrapper.tsx 517 B

​
​
​
​
​
​
​
​
​
123456789101112131415161718
  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;