import { cn } from "@/lib/utils"; import SectionContainer from "@/components/ui/section-container"; import { PAGE_QUERY_RESULT } from "@/sanity.types"; type SectionHeaderProps = Extract< NonNullable["blocks"]>[number], { _type: "section-header" } >; export default function SectionHeader({ padding, colorVariant, sectionWidth = "default", stackAlign = "left", tagLine, title, description, }: SectionHeaderProps) { const isNarrow = sectionWidth === "narrow"; return (
{tagLine && (

{tagLine}

)}

{title}

{description}

); }