type ContentPanelProps = { children: React.ReactNode; autoformat?: boolean; width?: ContentPanelWidthSizes; }; export enum ContentPanelWidthSizes { default, large, } export default function ContentPanel(props: ContentPanelProps): JSX.Element { const width = props.width ? props.width : ContentPanelWidthSizes.default; const widthCSS = width === ContentPanelWidthSizes.default ? "w-[45rem]" : "w-full"; const prose = props.autoformat ? "prose" : ""; return (