import "./components/ui/tidal.css"; import { useState, type MouseEvent } from "react"; import { TidalFooterRelease, type TidalFooterReleaseChangelogLink, type TidalFooterReleaseNavigationLink } from "./components/ui/footer-release"; import "./components/ui/footer-release.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 FooterReleaseDemo() { const [notice, setNotice] = useState("Sample release footer ready."); function sampleHandler(label: string) { return (event: MouseEvent) => { if (!isPlainPrimary(event)) return; event.preventDefault(); setNotice(`${label} selected locally. No page was opened.`); }; } const changelogLinks: readonly TidalFooterReleaseChangelogLink[] = [ { id: "notes", href: "#footer-release-demo", label: "Read the release notes", detail: "Full change summary", onClick: sampleHandler("Release notes"), }, { id: "history", href: "#footer-release-demo", label: "Browse release history", detail: "Earlier versions", onClick: sampleHandler("Release history"), }, ]; const links: readonly TidalFooterReleaseNavigationLink[] = [ { id: "product", href: "#footer-release-demo", label: "Product", onClick: sampleHandler("Product"), }, { id: "docs", href: "#footer-release-demo", label: "Documentation", onClick: sampleHandler("Documentation"), }, { id: "status", href: "#footer-release-demo", label: "System status", onClick: sampleHandler("System status"), }, ]; return ( ); } export default function AgentExample() { return (
); }