mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
9 lines
307 B
TypeScript
9 lines
307 B
TypeScript
// @ts-nocheck - may need to be reworked
|
|
export const stringToClipboard = (string) => {
|
|
const { navigator } = global;
|
|
|
|
return navigator.clipboard.writeText(string);
|
|
};
|
|
|
|
export const COPY_TEXT_SUCCESS = "Text copied to clipboard";
|
|
export const COPY_TEXT_ERROR = "Text not copied. Please copy manually.";
|