mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
17 lines
374 B
JavaScript
17 lines
374 B
JavaScript
import { h } from 'preact';
|
|
import { Link as RouterLink } from 'preact-router/match';
|
|
|
|
export default function Link({
|
|
activeClassName = '',
|
|
className = 'text-blue-500 hover:underline',
|
|
children,
|
|
href,
|
|
...props
|
|
}) {
|
|
return (
|
|
<RouterLink activeClassName={activeClassName} className={className} href={href} {...props}>
|
|
{children}
|
|
</RouterLink>
|
|
);
|
|
}
|