aboutsummaryrefslogtreecommitdiff
path: root/components/button.tsx
blob: 452d85f6c8cd7edcbb84599a97ae1cf10148b1f4 (plain)
1
2
3
4
5
6
7
8
9
export default function Button(props: {
	text: string;
	href?: string;
	onclick?: () => void;
}) {
	return props.href ?
			<a href={props.href} className="button">{props.text}</a> :
			<button onClick={props.onclick} className="button">{props.text}</button>
}