// __SDEFILE__ - This file is a dependency for the stand-alone environment import Link from 'next/link' export const ChoiceLink = ({ title = '', href = '', children, icon = null }) => { const linkProps = { href, className: `flex flex-col flex-nowrap items-start justify-start gap-2 pt-2 pb-4 h-auto w-full mt-3 btn btn-secondary btn-ghost border border-secondary hover:bg-opacity-20 hover:bg-secondary hover:border hover:border-secondary`, } const content = ( <>
{title} {icon}
{children}
) // Deal with external links return href.slice(0, 4).toLowerCase() === 'http' ? ( {content} ) : ( {content} ) }