2021-06-17 14:37:43 +02:00
|
|
|
import { html } from 'lit';
|
2020-03-06 11:16:04 +01:00
|
|
|
|
2021-08-02 18:30:59 +02:00
|
|
|
export default (url, hide_url) =>
|
|
|
|
html`<audio controls src="${url}"></audio>${ hide_url ? '' : html`<a target="_blank" rel="noopener" href="${url}">${url}</a>` }`;
|