import { Story } from '@storybook/vue3'; import { action } from '@storybook/addon-actions'; import { TBaseSocialPropsOptions } from '@/mixins/BaseSocial/BaseSocial'; import SGithubRepo, { ISGithubRepoShareOptions } from '../SGithubRepo'; import SGithubRepoMDX from './SGithubRepo.mdx'; export default { title: 'Share/SGithubRepo', component: SGithubRepo, parameters: { docs: { page: SGithubRepoMDX, }, }, }; const Template: Story> = (args) => ({ components: { SGithubRepo }, 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', repository: 'vue-socials', type: 'fork', }, useNativeBehavior: false, };