// This file is part of Coog. The COPYRIGHT file at the top level of // this repository contains the full copyright notices and license terms. import React from 'react'; import { faHome } from '@fortawesome/free-solid-svg-icons'; import Button from './Button'; import { ButtonProps } from './Button.types'; export default { title: 'Button', parameters: { actions: { handles: ['mouseover', 'click button'], }, component: Button, }, argTypes: { type: { control: { type: 'select', options: ['warning', 'error', 'primary', 'default', 'disabled', 'orange', 'green', 'purple'], }, }, }, }; export const ButtonWarning = (args: ButtonProps): JSX.Element => { const { id, label, type, disabled } = args; const eventEmitter = (ref: number) => console.log(`eventEmitter::${ref}`); return