import { useContext } from 'react' import { ItemFormPopup } from '#components/Map/Subcomponents/ItemFormPopup' import LayerContext from './LayerContext' import TemplateItemContext from './TemplateItemContext' /** * @category Map */ export const CardForm = ({ children }: { children?: React.ReactNode }) => { const { itemFormPopup, setItemFormPopup } = useContext(LayerContext) return ( itemFormPopup && ( {children} ) ) }