import { Story } from '@storybook/vue3'; import { action } from '@storybook/addon-actions'; import { TBaseSocialPropsOptions } from '@/mixins/BaseSocial/BaseSocial'; import SGithubGist, { ISGithubGistShareOptions } from '../SGithubGist'; import SGithubGistMDX from './SGithubGist.mdx'; export default { title: 'Share/SGithubGist', component: SGithubGist, parameters: { docs: { page: SGithubGistMDX, }, }, }; const Template: Story> = (args) => ({ components: { SGithubGist }, 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: 'ai', gistId: 'e3683b03ba936ade91d33dbc721cd6d8', type: 'star', }, useNativeBehavior: false, };