import React from 'react' import { type Meta, type StoryObj } from '@storybook/react-vite' import Button from './Button' import { DocsTemplate } from '../../../.storybook' import { buttonsConfig, confirmationConfig, destructiveButtonsConfig, } from './ButtonStoryHelpers' const meta: Meta = { title: 'Components/Buttons/Button/With Icon', component: Button, parameters: { docs: { page: () => ( as='button' - This is a standard button use. , as='link' - This is used when the button is a navigational link. , as='externalLink' - This is used when the button is an external link that will navigate outside of the application. , as='unstyled' - This is used when you need an element to be clickable, but do not want to inherit the generic button styles. , ]} /> ), }, controls: { sort: 'requiredFirst' }, }, } export default meta type Story = StoryObj const Template: Story = { render: ({ ...args }) => { return