feat: add YouTube embedded player (#460)
Co-authored-by: Daniel Vergara <daniel.omar.vergara@gmail.com>
This commit is contained in:
parent
830362b941
commit
5a28233856
8 changed files with 191 additions and 10 deletions
|
|
@ -7,6 +7,7 @@ import Image from '../Image'
|
|||
export default function WebPreview({ url, className }: { url: string; className?: string }) {
|
||||
const { isSmallScreen } = useScreenSize()
|
||||
const { title, description, image } = useFetchWebMetadata(url)
|
||||
|
||||
const hostname = useMemo(() => {
|
||||
try {
|
||||
return new URL(url).hostname
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue