We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 117ac90 + 3bfd941 commit 478a7d8Copy full SHA for 478a7d8
packages/react-uploader/src/SSR/ConditionalSuspense/ConditionalSuspense.tsx
@@ -1,15 +1,11 @@
1
-import React, { FC, Suspense } from "react";
+import React, { FC } from "react";
2
3
export type TProps = {
4
- // fallback?: React.ReactChild | React.ReactFragment | React.ReactPortal | null;
5
- // condition: boolean;
+ fallback?: React.ReactChild | React.ReactFragment | React.ReactPortal | null;
+ condition?: boolean;
6
children: React.ReactNode;
7
};
8
9
-export const ConditionalSuspense: FC<TProps> = ({
10
- // condition,
11
- // fallback,
12
- children,
13
-}) => {
+export const ConditionalSuspense: FC<TProps> = ({ children }) => {
14
return children;
15
0 commit comments