aboutsummaryrefslogtreecommitdiffstats
path: root/components/Box/Box.tsx
blob: 8e463e52b591f8745befc3a30980bdfa511be4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import Link from "next/link";
import styles from "./Box.module.css";

export interface Props {
    href: string;
    text: string;
}

const Box = ({ text, href }: Props): JSX.Element => (
    <Link href={href}>
        <a className={styles.box}>
            <span>{text}</span>
            <span className={styles.arrow}></span>
        </a>
    </Link>
);

export default Box;