import { ShadowContainer } from "@/components/design/ShadowContainer" import { SectionHeading } from "@/components/design/Section/SectionHeading" type SectionProps = React.ComponentPropsWithRef<"section"> & { heading?: string description?: string isMain?: boolean withoutShadowContainer?: boolean } export const Section = (props: SectionProps): JSX.Element => { const { children, heading, description, isMain = false, withoutShadowContainer = false, ...rest } = props if (isMain) { return (
{heading != null ? ( {heading} ) : null}
{children}
) } if (withoutShadowContainer) { return (
{heading != null ? {heading} : null}
{children}
) } return (
{heading != null ? ( {heading} ) : null} {description != null ? (

{description}

) : null}
{children}
) }