feat: add error handling for audio, video, and YouTube players
This commit is contained in:
parent
3395bad78b
commit
6eb3bccd38
4 changed files with 38 additions and 3 deletions
15
src/components/ExternalLink/index.tsx
Normal file
15
src/components/ExternalLink/index.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue