<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.displayCoverModeAnime}
  height={$settings.displayCoverModeAnime ? '8rem' : '0.9rem'}
  width={$settings.displayCoverModeAnime ? `${$settings.displayCoverWidth / 1.05}px` : '100%'}
  list={!$settings.displayCoverModeAnime}
  grid={$settings.displayCoverModeAnime}
/>
