'use client'; import Link from 'next/link'; import {usePathname, useSearchParams} from 'next/navigation'; import type {DemoContent} from '@/types/content'; type DemoSubnavProps = { demos: DemoContent[]; activeSlug?: DemoContent['slug']; hrefType?: 'page' | 'browser'; }; export function DemoSubnav({demos, activeSlug, hrefType = 'page'}: DemoSubnavProps) { const pathname = usePathname(); const searchParams = useSearchParams(); const selectedSlug = activeSlug ?? searchParams.get('demo') ?? demos[0]?.slug; return ( ); }