Last active
August 4, 2020 21:27
-
-
Save skflowne/202a14467445bb7c51d424bddd42929f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import type { File } from "../../interfaces/file.interface" | |
import FileItem from "./FileItem.svelte" | |
export let files: File[] = [] | |
</script> | |
<div class="w-4/5 mx-auto"> | |
{#if files.length > 0} | |
{#each files as file (file.id)} | |
<FileItem {file} /> | |
{/each} | |
{:else} | |
<div> | |
<h3>No matching files found</h3> | |
</div> | |
{/if} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment