mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
10 lines
307 B
TypeScript
10 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.";
|