import { ComponentStory, ComponentMeta } from '@storybook/react'; import React from 'react'; import CopyButton from '../CopyButton/CopyButton'; import { NotificationProvider, useNotification } from '../Notification'; import { Typography } from '../Typography'; export default { title: '4.UI/CopyButton', component: CopyButton, decorators: [ (Story) => ( ), ], } as ComponentMeta; const Template: ComponentStory = () => { const notify = useNotification(); return (
With Love from Developers notify({ type: 'success', message: 'Copied to clipboard', title: 'New Notification', position: 'topR', }) } />
); }; export const CopyButtonDefault = Template.bind({});