import "./components/ui/tidal.css"; import { useState, type MouseEvent } from "react"; import { TidalFooterSocial, type TidalFooterSocialChannel, type TidalFooterSocialLinkItem } from "./components/ui/footer-social"; import "./components/ui/footer-social.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 FooterSocialDemo() { const [notice, setNotice] = useState("Native destinations are ready."); function sampleHandler(label: string) { return (event: MouseEvent) => { if (!isPlainPrimary(event)) return; event.preventDefault(); setNotice(`${label} selected locally. No navigation occurred.`); }; } const channel = ( id: string, mark: string, label: string, description: string, href: string, ): TidalFooterSocialChannel => ({ id, mark, label, description, href, onClick: sampleHandler(label), }); const link = ( id: string, label: string, href: string, ): TidalFooterSocialLinkItem => ({ id, label, href, onClick: sampleHandler(label), }); return ( ); } export default function AgentExample() { return (
); }