import "./components/ui/tidal.css"; import { useState, type MouseEvent } from "react"; import { TidalFooterConversion, type TidalFooterConversionNavGroup } from "./components/ui/footer-conversion"; import "./components/ui/footer-conversion.css"; const tidalExampleStyles = ".tidal-scope .footer-pilot-05-demo,\n.tidal-scope .footer-pilot-05-demo-shell {\n min-inline-size: 0;\n inline-size: 100%;\n}"; const navigationGroups: readonly TidalFooterConversionNavGroup[] = [ { id: "learn", label: "Learn", links: [ { id: "components", label: "Components", href: "#preview-components" }, { id: "guides", label: "Guides", href: "#preview-guides" }, { id: "accessibility", label: "Accessibility", href: "#preview-accessibility", }, ], }, { id: "company", label: "Company", links: [ { id: "about", label: "About", href: "#preview-about" }, { id: "support", label: "Support", href: "#preview-support" }, { id: "status", label: "Status", href: "#preview-status" }, ], }, ]; function handlePreviewClick( label: string, setStatus: (status: string) => void, ) { return (event: MouseEvent) => { if ( event.defaultPrevented || event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || event.currentTarget.target ) { return; } event.preventDefault(); setStatus(`${label} selected in this local preview.`); }; } export function FooterConversionDemo() { const [lastAction, setLastAction] = useState("No preview action selected."); const previewNavigationGroups = navigationGroups.map((group) => ({ ...group, links: group.links.map((link) => ({ ...link, onClick: handlePreviewClick(String(link.label), setLastAction), })), })); return (
TidalUI } eyebrow="Get started" primaryLabel="Self serve" secondaryLabel="With our team" heading="Ready to get started?" description="Try the product or talk to our team." primary={{ id: "start-trial", label: "Start a trial", href: "#preview-start-trial", description: "Explore the product at your own pace.", onClick: handlePreviewClick("Start a trial", setLastAction), }} secondary={{ id: "book-demo", label: "Book a demo", href: "#preview-book-demo", description: "See how it fits your workflow.", onClick: handlePreviewClick("Book a demo", setLastAction), }} navigationGroups={previewNavigationGroups} legal={© 2026 TidalUI preview} status={{lastAction}} />
); } export default function AgentExample() { return (
); }