import React, { PropsWithChildren } from 'react' import { chakra, Text } from '@chakra-ui/react' export enum ImageButtonVariant { Black, White, Current } export type ImageButtonProps = PropsWithChildren<{ image: any variant: ImageButtonVariant target: '_blank' | '_self' }> const ButtonWithIcon = ({ image, variant, target = '_self', children }: ImageButtonProps) => { const isBlackVariant = variant === ImageButtonVariant.Black return ( {children} {image && ( {image} )} ) } ButtonWithIcon.defaultProps = { variant: ImageButtonVariant.White, } export default ButtonWithIcon