(url: string)
| 109 | } |
| 110 | |
| 111 | export function isSupported(url: string): boolean { |
| 112 | const ext = getUrlExtension(url); |
| 113 | return ext ? supportedExtensions.includes(ext) : false; |
| 114 | } |
| 115 | |
| 116 | export function getMediaUrl(props: { src?: string; href?: string; itemSrc?: string; itemHref?: string; target?: any; }): string | null { |
| 117 | const url = props.src || props.href || props.itemSrc || props.itemHref; |
no test coverage detected