import { isTauriAppPlatform } from '@/services/environment'; import { openUrl } from '@tauri-apps/plugin-opener'; interface LinkProps extends React.AnchorHTMLAttributes { href: string; title?: string; } const Link: React.FC = ({ href, children, ...props }) => { const handleClick = async (e: React.MouseEvent) => { if (isTauriAppPlatform()) { e.preventDefault(); await openUrl(href); } }; return ( {children} ); }; export default Link;