import type { Meta, StoryObj } from '@storybook/react' import { Button, Typography } from '../../components' import { useClipboardCopy } from '.' const meta: Meta = { title: 'Hooks/useClipboardCopy', } export default meta export const Default: StoryObj = { render: function CopyDemo() { const { isCopied, copy } = useClipboardCopy() const textToCopy = 'Hello, this text was copied!' return (
useClipboardCopy Demo Click the button to copy text to your clipboard. The button state will change for 1 second after copying.
{textToCopy}
) }, } export const CopyCode: StoryObj = { render: function CopyCodeExample() { const { isCopied, copy } = useClipboardCopy() return (
Copy Code Example
            {`const greeting = "Hello World"
console.log(greeting)`}
          
) }, }