import { chakra, useRecipe } from '@chakra-ui/react';
import LinkButton from '../LinkButton';
// A button of the hero: a path of the site goes through the router, an anchor
// or an https address is a plain link in the same style.
export default function HeroButton({
label,
target,
}: {
label: string;
target: string;
}) {
const recipe = useRecipe({ key: 'linkButton' });
if (target.startsWith('/')) {
return (
{label}
);
}
return (
{label}
);
}