feat: add error handling for audio, video, and YouTube players

This commit is contained in:
codytseng 2025-10-09 22:22:16 +08:00
parent 3395bad78b
commit 6eb3bccd38
4 changed files with 38 additions and 3 deletions

View file

@ -0,0 +1,15 @@
import { cn } from '@/lib/utils'
export default function ExternalLink({ url, className }: { url: string; className?: string }) {
return (
<a
className={cn('text-primary hover:underline', className)}
href={url}
target="_blank"
onClick={(e) => e.stopPropagation()}
rel="noreferrer"
>
{url}
</a>
)
}