import "./components/ui/tidal.css"; import { useState, type MouseEvent } from "react"; import { TidalFooterSupport, type TidalFooterSupportChannel, type TidalFooterSupportProductLink } from "./components/ui/footer-support"; import "./components/ui/footer-support.css"; const tidalExampleStyles = ".tidal-scope .footer-pilot-demo,\n.tidal-scope .footer-pilot-demo * {\n box-sizing: border-box;\n}\n\n.tidal-scope .footer-pilot-demo {\n inline-size: min(100%, 1240px);\n min-inline-size: 0;\n margin-inline: auto;\n}"; function isPlainPrimary(event: MouseEvent) { return ( event.button === 0 && !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey ); } export function FooterSupportDemo() { const [notice, setNotice] = useState("Sample support footer ready."); function sampleHandler(label: string) { return (event: MouseEvent) => { if (!isPlainPrimary(event)) return; event.preventDefault(); setNotice(`${label} selected locally. No support request was created.`); }; } const channels: readonly TidalFooterSupportChannel[] = [ { id: "email", href: "#footer-support-demo", label: "Email support", description: "Send a detailed support request.", meta: "Email", onClick: sampleHandler("Email support"), }, { id: "help", href: "#footer-support-demo", label: "Help center", description: "Browse setup, account and product guidance.", meta: "Documentation", onClick: sampleHandler("Help center"), }, { id: "status", href: "#footer-support-demo", label: "System status", description: "Review the product’s published service-health page.", meta: "Service health", onClick: sampleHandler("System status"), }, ]; const productLinks: readonly TidalFooterSupportProductLink[] = [ { id: "product", href: "#footer-support-demo", label: "Product", onClick: sampleHandler("Product"), }, { id: "security", href: "#footer-support-demo", label: "Security", onClick: sampleHandler("Security"), }, { id: "accessibility", href: "#footer-support-demo", label: "Accessibility", onClick: sampleHandler("Accessibility"), }, { id: "account", href: "#footer-support-demo", label: "Account", onClick: sampleHandler("Account"), }, ]; return ( ); } export default function AgentExample() { return (
); }