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.
1 parent e09ef8b commit 0af3e24Copy full SHA for 0af3e24
src/Notehing.tsx
@@ -1,9 +1,15 @@
1
-import { ReactElement } from "react";
+import { ReactElement, Fragment, createElement } from "react";
2
3
import { NotehingContainerProps } from "../typings/NotehingProps";
4
5
import "./ui/Notehing.css";
6
7
-export function Notehing(): ReactElement<NotehingContainerProps> | null {
+export function Notehing(props: NotehingContainerProps): ReactElement | null {
8
+ const { isContainer, content } = props;
9
+
10
+ if (isContainer) {
11
+ return <Fragment>{content}</Fragment>;
12
+ }
13
14
return null;
15
}
0 commit comments