2021-05-14 18:39:12 +00:00
|
|
|
<script context="module">
|
|
|
|
|
|
|
|
// Export stuff.
|
|
|
|
// Important: duplicate of offline-iconify.ts. When changing exports, they must be changed in both files.
|
|
|
|
import {
|
|
|
|
addIcon,
|
|
|
|
addCollection
|
|
|
|
} from './offline-functions';
|
|
|
|
|
|
|
|
export {
|
|
|
|
addIcon,
|
|
|
|
addCollection
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
2020-04-28 19:40:05 +00:00
|
|
|
<script>
|
2021-04-30 07:01:30 +00:00
|
|
|
import { generateIcon } from './offline-functions';
|
2020-08-22 12:31:44 +00:00
|
|
|
|
2020-04-28 19:40:05 +00:00
|
|
|
// Generated data
|
|
|
|
let data;
|
|
|
|
|
|
|
|
$: {
|
|
|
|
data = generateIcon($$props);
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-04-12 08:09:22 +00:00
|
|
|
{#if data}
|
|
|
|
{#if data.svg}
|
|
|
|
<svg {...data.attributes}>
|
|
|
|
{@html data.body}
|
|
|
|
</svg>
|
|
|
|
{:else}
|
|
|
|
<span {...data.attributes} />
|
|
|
|
{/if}
|
2021-04-29 21:06:26 +00:00
|
|
|
{/if}
|