({src, srclang: srcLang, ...otherProps})
| 99 | } |
| 100 | |
| 101 | export function Track({src, srclang: srcLang, ...otherProps}) { |
| 102 | let publicUrl = React.useContext(ImageContext); |
| 103 | let baseUrl = publicUrl.replace(/\/$/, ''); |
| 104 | let url = baseUrl + '/' + path.basename(src); |
| 105 | |
| 106 | return <track src={url} {...otherProps} srcLang={srcLang} />; |
| 107 | } |
nothing calls this directly
no outgoing calls
no test coverage detected