This hook returns an object containing the following properties:
copied: A boolean that indicates whether the text has been successfully copied to the clipboard.
copyToClipboard: A function to copy the passed text to the clipboard.
Parameters
resetCopyAfterMs (optional): A number representing the duration (in milliseconds) after which the copied state will reset to false. The default value is 300 ms.