import type { Meta, StoryFn } from '@storybook/preact'; import type { ComponentProps } from 'preact'; import { action } from 'storybook/actions'; import { Button } from '.'; import { gazzoAvatar } from '../../../.storybook/helpers'; import ChatIcon from '../../icons/chat.svg'; export default { title: 'components/Button', component: Button, args: { disabled: false, outline: false, nude: false, danger: false, secondary: false, stack: false, small: false, loading: false, badge: undefined, icon: null, img: undefined, children: 'Powered by Rocket.Chat', onClick: action('clicked'), }, argTypes: { icon: { options: ['none', 'chat'], mapping: { none: null, chat: , }, }, }, parameters: { layout: 'centered', }, } satisfies Meta>; const Template: StoryFn> = (args) =>