import React from 'react'; import { usePopConfirm } from './Context'; import type { PropContentProps } from './types'; import { Box } from '../Box'; import { Divider } from '../Divider'; import { HEIGHT_DIVIDER } from './constants'; const Content: React.FC = ({ children, style, withBorder = false }) => { const { addElement, haveHeader } = usePopConfirm(); React.useEffect(() => { addElement('Content'); }, [addElement]); return ( <> {(withBorder || haveHeader) && } {children} ); }; export default Content;