17 lines
291 B
TypeScript
17 lines
291 B
TypeScript
import Link from "next/link";
|
|
|
|
export default function CustomLink({ as, href, ...otherProps }) {
|
|
return (
|
|
<>
|
|
<Link as={as} href={href}>
|
|
<a {...otherProps} />
|
|
</Link>
|
|
<style jsx>{`
|
|
a {
|
|
color: tomato;
|
|
}
|
|
`}</style>
|
|
</>
|
|
);
|
|
}
|