import React, { FC, ReactNode } from 'react' import Link from 'next/link' import Image from 'next/image' interface Props { title: string description?: string to: string icon?: string | any children?: any layout?: 'vertical' | 'horizontal' } const ButtonCard: FC = ({ children = undefined, icon = undefined, title, description = '', to, layout = 'vertical', }) => { return ( {children ? ( children ) : (
{icon && typeof icon == 'string' ? (
{title}
) : ( icon )}

{title}

{description}

)}
) } export default ButtonCard