diff --git a/packages/react-uploader/src/SSR/ConditionalSuspense/ConditionalSuspense.tsx b/packages/react-uploader/src/SSR/ConditionalSuspense/ConditionalSuspense.tsx index 4ee86f3..9d8c69f 100644 --- a/packages/react-uploader/src/SSR/ConditionalSuspense/ConditionalSuspense.tsx +++ b/packages/react-uploader/src/SSR/ConditionalSuspense/ConditionalSuspense.tsx @@ -1,15 +1,11 @@ -import React, { FC, Suspense } from "react"; +import React, { FC } from "react"; export type TProps = { - // fallback?: React.ReactChild | React.ReactFragment | React.ReactPortal | null; - // condition: boolean; + fallback?: React.ReactChild | React.ReactFragment | React.ReactPortal | null; + condition?: boolean; children: React.ReactNode; }; -export const ConditionalSuspense: FC = ({ - // condition, - // fallback, - children, -}) => { +export const ConditionalSuspense: FC = ({ children }) => { return children; };