import "./components/ui/tidal.css"; import { useState, type MouseEvent } from "react"; import { TidalFooterAppDownload, type TidalFooterAppNavigationLink, type TidalFooterAppPlatformLink } from "./components/ui/footer-app-download"; import "./components/ui/footer-app-download.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 FooterAppDownloadDemo() { const [notice, setNotice] = useState("Sample app footer ready."); function handleSample(label: string) { return (event: MouseEvent) => { if (!isPlainPrimary(event)) return; event.preventDefault(); setNotice(`${label} selected locally. No store was opened.`); }; } const platforms: readonly TidalFooterAppPlatformLink[] = [ { id: "ios", platform: "ios", href: "#footer-app-download-demo", label: "Download for iOS", detail: "For iPhone and iPad", onClick: handleSample("iOS download"), }, { id: "android", platform: "android", href: "#footer-app-download-demo", label: "Download for Android", detail: "For phones and tablets", onClick: handleSample("Android download"), }, ]; const links: readonly TidalFooterAppNavigationLink[] = [ { id: "web", href: "#footer-app-download-demo", label: "Use the web app", onClick: handleSample("Web app"), }, { id: "help", href: "#footer-app-download-demo", label: "Installation help", onClick: handleSample("Installation help"), }, { id: "privacy", href: "#footer-app-download-demo", label: "Privacy", onClick: handleSample("Privacy"), }, ]; return ( ); } export default function AgentExample() { return (
); }