import { cn } from "@/lib/utils"; import styles from "./HomeSection.module.css"; type HomeSectionProps = { bg: string; slantCurrent?: "up" | "down" | "none"; slantBefore?: "up" | "down" | "none"; slantAfter?: "up" | "down" | "none"; gradient?: string; hiddenOnMobile?: boolean; children: React.ReactNode; className?: string; }; export const HomeSection = ({ bg, slantCurrent = "none", slantBefore = "none", slantAfter = "none", gradient, hiddenOnMobile = false, className, children, }: HomeSectionProps): JSX.Element => { const slantBeforeFix = styles[`slant-before-is-${slantBefore}`] ?? ""; const slantAfterFix = styles[`slant-after-is-${slantAfter}`] ?? ""; const flex = hiddenOnMobile ? "hidden md:flex md:justify-center" : "flex justify-center"; const slant = styles[`section-slanted-${slantCurrent}wards`] ?? ""; return (
{children}
{gradient !== undefined ? (
) : null}
); };