import { MouseEvent, ReactNode } from 'react'; import { IoArrowUp } from '@react-icons/all-files/io5/IoArrowUp'; import { openLink } from '../../utils/linkUtils'; import style from './AppLink.module.scss'; interface AppLinkProps { href: string; children: ReactNode; } export default function AppLink(props: AppLinkProps) { const { href, children } = props; const handleClick = (event: MouseEvent) => { event.preventDefault(); openLink(href); }; return ( {children} ); }