import { Link } from 'react-router-dom' import { logger } from '~/utils/logger' export interface IVUnstyledButtonOrLinkProps extends React.HTMLAttributes { href?: string state?: Record onClick?: () => void className?: string children: React.ReactNode } export default function IVUnstyledButtonOrLink({ href, state, onClick, className, children, ...rest }: IVUnstyledButtonOrLinkProps) { if (href) { return ( {children} ) } if (onClick) { return ( ) } logger.warn('Neither href nor onClick were provided') return null }