({ children }: PropsWithChildren)
| 5 | * Load children once the editor is available |
| 6 | */ |
| 7 | const WithEditor = ({ children }: PropsWithChildren) => { |
| 8 | const editor = useEditorMaybe(); |
| 9 | |
| 10 | return editor ? <>{children}</> : <></>; |
| 11 | }; |
| 12 | |
| 13 | export default WithEditor; |
nothing calls this directly
no test coverage detected