Files
stufflog2/svelte-ui/src/components/EmptyParentEntry.svelte
T
2021-04-03 12:08:56 +02:00

35 lines
647 B
Svelte

<script lang="ts">
import type { IconName } from "../external/icons";
import ParentEntry from "./ParentEntry.svelte";
export let name = "";
export let description = "";
export let headerLink = "";
export let hideIcon: boolean = false;
export let icon: IconName = "anchor";
let entry;
$: {
entry = {
id: "__empty",
name: name,
description: description,
icon: icon,
};
}
</script>
<ParentEntry
entry={entry}
full={false}
headerLink={headerLink}
hideProgress={true}
hideIcon={hideIcon}
showTimeProgress={true}
annotations={[]}
removeHook={true}
>
<slot></slot>
</ParentEntry>