import { useState } from "react"; import { Check, ExternalLink, Link } from "lucide-react"; import { useTranslation, type ShellApi } from "@termix/plugin-sdk/frontend"; import { HomepageCanvas } from "./HomepageCanvas.js"; /** The homepage plugin's contribution to the dashboard's "dashboard.secondaryView" slot. */ export function DashboardHomepageView({ onOpenSingletonTab, }: { onOpenSingletonTab: ShellApi["openSingletonTab"]; }) { const { t } = useTranslation(); const [linkCopied, setLinkCopied] = useState(false); const handleCopyLink = () => { navigator.clipboard .writeText(`${window.location.origin}?view=homepage`) .catch(() => {}); setLinkCopied(true); setTimeout(() => setLinkCopied(false), 1500); }; return ( <>
{t("nav.homepage")}
); }