import { Story } from '@storybook/vue3'; import { action } from '@storybook/addon-actions'; import { TBaseSocialPropsOptions } from '@/mixins/BaseSocial/BaseSocial'; import SGithub, { ISGithubShareOptions } from '../SGithub'; import SGithubMDX from './SGithub.mdx'; export default { title: 'Share/SGithub', component: SGithub, parameters: { docs: { page: SGithubMDX, }, }, }; const Template: Story> = (args) => ({ components: { SGithub }, 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: 900, height: 600, }, shareOptions: { username: 'webistomin', type: 'profile', }, };