'use client' import { AnimatePresence, motion } from 'motion/react' import Link from 'next/link' import { useState } from 'react' import { cn } from 'ui' import SectionContainerWithCn from '../../../components/Layouts/SectionContainerWithCn' import { isCrossZoneHref } from '@/lib/cross-zone' import { useSendTelemetryEvent } from '@/lib/telemetry' type Framework = { name: string icon: string docsUrl: string darkHtml: string lightHtml: string examples: { title: string; description: string; url: string; icon: string }[] } export function FrameworksSectionClient({ frameworks }: { frameworks: Framework[] }) { const [activeIdx, setActiveIdx] = useState(0) const sendTelemetryEvent = useSendTelemetryEvent() const active = frameworks[activeIdx] const docsLinkLabel = ( <> {`Read docs for ${active.name}`} ) const handleTabChange = (index: number) => { setActiveIdx(index) } const handleDocsLinkClick = () => { sendTelemetryEvent({ action: 'homepage_framework_quickstart_clicked', properties: { frameworkName: active.name }, }) } return (
{/* Left: title */}

Use Supabase with{' '} {active.name}

{/* Right: icon tabs + code */}
{/* 6-col icon row */}
{frameworks.map((framework, index) => ( ))}
{/* Code area */}
{isCrossZoneHref(active.docsUrl) ? ( {docsLinkLabel} ) : ( {docsLinkLabel} )}
) }