2021-01-09 09:26:46 -08:00
|
|
|
import { h } from 'preact';
|
|
|
|
|
|
|
|
|
|
export default function Link({ className, children, href, ...props }) {
|
|
|
|
|
return (
|
2021-01-19 08:44:18 -08:00
|
|
|
<a className={`text-blue-500 dark:text-blue-400 hover:underline ${className}`} href={href} {...props}>
|
2021-01-09 09:26:46 -08:00
|
|
|
{children}
|
|
|
|
|
</a>
|
|
|
|
|
);
|
|
|
|
|
}
|