import React from "react"; import { Link as InternalLink } from "react-router-dom"; export function Link(props: { to: string; children: JSX.Element | JSX.Element[]; className?: string; style?: React.StyleHTMLAttributes; }) { const { to, children, className, style } = props; return ( {to.startsWith("/") ? ( {children} ) : ( {children} )} ); }