Improved error messaging based on feature missing from browser

This commit is contained in:
Dan Ditomaso
2025-01-15 20:11:46 -05:00
parent 1c8476df53
commit 225d6055d4
3 changed files with 117 additions and 77 deletions
+5 -2
View File
@@ -1,14 +1,17 @@
import { cn } from "@app/core/utils/cn";
export interface LinkProps {
href: string;
children: React.ReactNode;
className?: string;
}
export const Link = ({ href, children }: LinkProps): JSX.Element => (
export const Link = ({ href, children, className }: LinkProps): JSX.Element => (
<a
href={href}
target={"_blank"}
rel="noopener noreferrer"
className="font-medium text-slate-900 underline underline-offset-4 dark:text-slate-50"
className={cn("font-medium text-slate-900 underline underline-offset-4 dark:text-slate-50", className)}
>
{children}
</a>