MCPcopy Create free account
hub / github.com/fontsource/fontsource / copyLabel

Function copyLabel

website/app/components/docs/PageActions.tsx:13–17  ·  view source on GitHub ↗
(status: CopyStatus)

Source from the content-addressed store, hash-verified

11}
12
13const copyLabel = (status: CopyStatus) => {
14 if (status === 'copied') return 'Copied Markdown';
15 if (status === 'failed') return 'Copy failed';
16 return 'Copy Markdown';
17};
18
19export const PageActions = ({ markdownUrl }: PageActionsProps) => {
20 const [copyStatus, setCopyStatus] = useState<CopyStatus>('idle');

Callers 1

PageActionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected