MapComplete/src/UI/Image/ImageCarousel.svelte

17 lines
650 B
Svelte
Raw Normal View History

<script lang="ts">
2024-12-17 04:05:15 +01:00
import { Store, UIEventSource } from "../../Logic/UIEventSource.js"
import type { ProvidedImage } from "../../Logic/ImageProviders/ImageProvider"
import type { SpecialVisualizationState } from "../SpecialVisualization"
import DeletableImage from "./DeletableImage.svelte"
export let images: Store<ProvidedImage[]>
export let state: SpecialVisualizationState
2024-12-17 04:05:15 +01:00
export let tags: UIEventSource<Record<string, string>>
</script>
<div class="flex w-full space-x-2 overflow-x-auto" style="scroll-snap-type: x proximity">
{#each $images as image (image.url)}
2024-11-07 11:19:15 +01:00
<DeletableImage {image} {state} {tags} />
{/each}
</div>