import { useCallback } from "react"; import { getWorktreeUiBranding } from "../lib/worktree-branding"; import { useCopyAction } from "../lib/use-copy-action"; export function WorktreeBanner() { const branding = getWorktreeUiBranding(); const { copied, failed, copy } = useCopyAction(); const handleCopyName = useCallback(() => { if (!branding) return; void copy(branding.name); }, [branding, copy]); if (!branding) return null; return (
Worktree
); }