import React from 'react' import type { Story } from '@storybook/react' import Component from '../Icon' import type { IconProps } from '../Icon' import mdx from './Icon.mdx' import ShoppingCart from './assets/ShoppingCart' import type { ComponentArgTypes } from '../../../typings/utils' const IconTemplate: Story = ({ style }) => ( } /> ) export const Icon = IconTemplate.bind({}) Icon.args = { style: { fontSize: '32px', color: 'red', }, } const argTypes: ComponentArgTypes> = { style: { control: { type: 'object' }, }, onClick: { action: 'Icon clicked', table: { disable: true }, }, } export default { title: 'Atoms/Icon', argTypes, parameters: { docs: { page: mdx, }, }, }