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 (
{textToCopy}
{`const greeting = "Hello World"
console.log(greeting)`}