import { useTimedBoolean } from '../hooks/useTimedBoolean'; import { copyToClipboard } from '../lib/copy'; import { showToast } from '../lib/toast'; import type { ButtonProps } from './core/Button'; import { Button } from './core/Button'; interface Props extends Omit { text: string | (() => Promise); } export function CopyButton({ text, ...props }: Props) { const [copied, setCopied] = useTimedBoolean(); return ( ); }