aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/NavigateLink.tsx
blob: 712c5ce7322ff1101a7361873a66bd813414f146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { Link } from "wouter";

export default function NavigateLink({
  to,
  children,
}: {
  to: string;
  children: React.ReactNode;
}) {
  return (
    <Link
      to={to}
      className="text-lg text-white bg-brand-600 px-4 py-2 border-2 border-brand-50 rounded-sm transition duration-300 hover:bg-brand-500 focus:ring-3 focus:ring-brand-400 focus:outline-hidden"
    >
      {children}
    </Link>
  );
}