import type { DetailedHTMLProps, HTMLAttributes } from 'react'; import tw from 'twin.macro'; import FlashMessageRender from '@/components/FlashMessageRender'; import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; type Props = Readonly< DetailedHTMLProps, HTMLDivElement> & { title?: string; borderColor?: string; showFlashes?: string | boolean; showLoadingOverlay?: boolean; } >; const ContentBox = ({ title, borderColor, showFlashes, showLoadingOverlay, children, ...props }: Props) => (
{title &&

{title}

} {showFlashes && ( )}
{children}
); export default ContentBox;