import { ReactNode } from 'react' export enum Color { Primary = 'primary', Gray = 'gray', } export enum Shape { Default = 'default', Square = 'square', } const Button = ({ children, onClick, color = Color.Primary, iconColor = Color.Primary, isSkelton = false, }: { children: ReactNode onClick: () => void color?: Color iconColor?: Color isSkelton?: boolean }) => { const shape = Array.isArray(children) && children.length === 1 ? Shape.Square : Shape.Default return ( ) } export default Button