import { Story } from '@storybook/vue3'; import { action } from '@storybook/addon-actions'; import { TBaseSocialPropsOptions } from '@/mixins/BaseSocial/BaseSocial'; import SPinterest, { ISPinterestShareOptions } from '../SPinterest'; import SPinterestMDX from './SPinterest.mdx'; export default { title: 'Share/SPinterest', component: SPinterest, parameters: { docs: { page: SPinterestMDX, }, }, }; const Template: Story> = (args) => ({ components: { SPinterest }, setup() { const onClose = action('emit close'); const onOpen = action('emit open'); const onBlock = action('emit block'); const onFocus = action('emit focus'); return { args, onClose, onOpen, onBlock, onFocus, }; }, template: ` `, }); export const Default = Template.bind({}); Default.args = { windowFeatures: { width: 700, height: 700, }, shareOptions: { url: 'https://github.com/', media: '', description: 'Description', }, };