import "./components/ui/tidal.css"; import { useState, type MouseEvent } from "react"; import { TidalFooterContact, type TidalFooterContactAction, type TidalFooterContactLinkItem } from "./components/ui/footer-contact"; import "./components/ui/footer-contact.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 FooterContactDemo() { const [notice, setNotice] = useState("Sample footer ready."); function sampleLink(id: string, label: string): TidalFooterContactLinkItem { return { id, label, href: "#footer-contact-demo", onClick: (event: import("react").MouseEvent) => { if (!isPlainPrimary(event)) return; event.preventDefault(); setNotice(`${label} selected locally.`); }, }; } const contact: TidalFooterContactAction = { href: "#footer-contact-demo", label: "hello@example.com", detail: "Sample contact action. No message will be sent.", onClick: (event: import("react").MouseEvent) => { if (!isPlainPrimary(event)) return; event.preventDefault(); setNotice("Contact action selected locally. No message was sent."); }, }; return ( ); } export default function AgentExample() { return (
); }