import { twMerge } from 'tailwind-merge' import { getPageCopy } from '@repo/content/loaders' import type { Language, TechStackOverviewSection } from '@repo/content/schemas' import ContentWidth from '@/components/layout/content-width' import { Reveal, RevealItem } from '@/components/motion/reveal' import { ROUTES } from '@/constants/routes' import { createSectionFinder } from '@/lib/page-sections' import { TechStackDiagram } from './tech-stack-diagram' const findTechnologyStackSection = createSectionFinder('technology-stack') export default async function TechStackExplorer({ locale, contentClassName, }: { locale: Language contentClassName?: string }) { const page = await getPageCopy(ROUTES.technologyStack, locale) const overview = findTechnologyStackSection( page.sections, 'techStackOverview', 'techStack.overview' ) if (!overview.explorer) { throw new Error( 'technology-stack techStackOverview.explorer copy is required' ) } const { titleLine1, titleLine2, body } = overview.explorer return (

{titleLine1}
{titleLine2}

{body}

) }