13 lines
216 B
TypeScript
13 lines
216 B
TypeScript
|
import { ReactNode } from "react";
|
||
|
|
||
|
interface Props {
|
||
|
href: string;
|
||
|
children: ReactNode;
|
||
|
}
|
||
|
|
||
|
export const ExternalLink = ({ href, children }: Props) => (
|
||
|
<a href={href} target="_blank">
|
||
|
{children}
|
||
|
</a>
|
||
|
);
|