<script lang="ts">
	import Skeleton from '$lib/Loading/Skeleton.svelte';
	import settings from '$stores/settings';
	import ListTitle from '../ListTitle.svelte';
	import type { Title } from '../mediaTitle';

	export let title: Title;
	export let count = 8;
</script>

<ListTitle {title} />

<Skeleton
	card={false}
	{count}
	pad={$settings.displayCoverMode}
	height={$settings.displayCoverMode ? '8rem' : '0.9rem'}
	width={$settings.displayCoverMode ? `${$settings.displayCoverWidth / 1.05}px` : '100%'}
	list={!$settings.displayCoverMode}
	grid={$settings.displayCoverMode}
/>
