Created
April 29, 2021 19:02
-
-
Save jacksteamdev/db8b566c4ff2e77de64227cca0a2f706 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { writeText } from "./writeText"; | |
import { notify } from "@extend-chrome/notify"; | |
export const notifyCopy = (txt) => { | |
const btnTitle = "copy again"; | |
return notify.create({ | |
message: `"${txt}" was copied to the clipboard.`, | |
buttons: [{ title: btnTitle, onClick: () => writeText(txt) }], | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment