'use client'; import { useCopyToClipboard } from '@documenso/lib/client-only/hooks/use-copy-to-clipboard'; import { useToast } from '@documenso/ui/primitives/use-toast'; export type PasswordRevealProps = { password: string; }; export const PasswordReveal = ({ password }: PasswordRevealProps) => { const { toast } = useToast(); const [, copy] = useCopyToClipboard(); const onCopyClick = () => { void copy(password).then(() => { toast({ title: 'Copied to clipboard', description: 'Your password has been copied to your clipboard.', }); }); }; return ( ); };