<script lang="ts">
	export let type: string | undefined = undefined;
	export let percent: number | undefined = undefined;
	export let card = true;
</script>

<div class:card>
	{#if type}
		Loading {type} ...{percent ? ` ${percent}%` : ''}
	{:else}
		<slot />
	{/if}
</div>
