2024-02-26 22:45:08 +01:00
|
|
|
<script lang="ts">
|
2024-04-26 06:18:19 +00:00
|
|
|
import RadioButton from '$lib/components/elements/radio-button.svelte';
|
2024-02-26 22:45:08 +01:00
|
|
|
import { MediaType } from './search-filter-box.svelte';
|
|
|
|
|
|
|
|
|
|
export let filteredMedia: MediaType;
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div id="media-type-selection">
|
2024-04-26 06:18:19 +00:00
|
|
|
<fieldset>
|
|
|
|
|
<legend class="immich-form-label">MEDIA TYPE</legend>
|
|
|
|
|
<div class="flex flex-wrap gap-x-5 gap-y-2 mt-1">
|
|
|
|
|
<RadioButton name="media-type" id="type-all" bind:group={filteredMedia} label="All" value={MediaType.All} />
|
|
|
|
|
<RadioButton name="media-type" id="type-image" bind:group={filteredMedia} label="Image" value={MediaType.Image} />
|
|
|
|
|
<RadioButton name="media-type" id="type-video" bind:group={filteredMedia} label="Video" value={MediaType.Video} />
|
|
|
|
|
</div>
|
|
|
|
|
</fieldset>
|
2024-02-26 22:45:08 +01:00
|
|
|
</div>
|