gbclient/components/ExternalLink.tsx

18 lines
363 B
TypeScript
Raw Normal View History

import { Link } from 'lucide-react';
import React, { type ComponentProps } from 'react';
import { Platform } from 'react-native';
type Props = Omit<ComponentProps<typeof Link>, 'href'> & { href: string };
export function ExternalLink({ href, ...rest }: Props) {
return (
<Link
target="_blank"
{...rest}
href={href}
/>
);
}