import * as React from "react"; import { FunctionComponent } from "react"; import { Context } from "../context/context"; const FloatingPanel: FunctionComponent<{ context: Context; color: string; visible: boolean; }> = (props) => { if(!props.visible) return <> return (
{props.children}
) }; export default FloatingPanel;