import React from 'react'; import FlashMessageRender from '@/components/FlashMessageRender'; import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; import tw from 'twin.macro'; type Props = Readonly, 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;