({ children, className, ...props })
| 2 | |
| 3 | type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement>; |
| 4 | export const Button: FC<ButtonProps> = ({ children, className, ...props }) => { |
| 5 | return ( |
| 6 | <button |
| 7 | className={`border-2 disabled:bg-gray-100 border-white bg-black p-2 text-white hover:bg-gray-800 active:bg-gray-700 ${className ?? ""}`} |
| 8 | {...props} |
| 9 | > |
| 10 | {children} |
| 11 | </button> |
| 12 | ); |
| 13 | }; |
| 14 | |
| 15 | |
| 16 | export const SwitchButton: FC<ButtonProps> = ({ children, className, ...props }) => { |
nothing calls this directly
no outgoing calls
no test coverage detected