feat: add safari clipboard copy support (#486)

This commit is contained in:
David Nguyen
2023-10-17 12:40:36 +11:00
committed by GitHub
parent 8d2e50d1fe
commit 4b09693862
8 changed files with 163 additions and 67 deletions

View File

@ -0,0 +1,13 @@
import { Toast } from '@documenso/ui/primitives/use-toast';
export const TOAST_DOCUMENT_SHARE_SUCCESS: Toast = {
title: 'Copied to clipboard',
description: 'The sharing link has been copied to your clipboard.',
} as const;
export const TOAST_DOCUMENT_SHARE_ERROR: Toast = {
variant: 'destructive',
title: 'Something went wrong',
description: 'The sharing link could not be created at this time. Please try again.',
duration: 5000,
};