import { Story } from '@storybook/vue3'; import { action } from '@storybook/addon-actions'; import { TBaseSocialPropsOptions } from '@/mixins/BaseSocial/BaseSocial'; import SMastodon, { ISMastodonShareOptions } from '../SMastodon'; import SMastodonMDX from './SMastodon.mdx'; export default { title: 'Share/SMastodon', component: SMastodon, parameters: { docs: { page: SMastodonMDX, }, }, }; const Template: Story> = (args) => ({ components: { SMastodon }, 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: 600, height: 700, }, shareOptions: { domain: 'https://mas.to', text: 'Hello, world!', url: 'https://github.com', }, useNativeBehavior: false, };