<script lang="ts">
	import type { ComponentProps } from "svelte";
	import Item from "./Item.svelte";
	import FileSuggest from "../suggesters/FileSuggest.svelte";

	type Props = Omit<ComponentProps<typeof Item>, "control"> & {
		id: string;
		value?: string;
	};

	let { name, description, id, value = $bindable() }: Props = $props();
</script>

<Item {name} {description}>
	{#snippet control()}
		<FileSuggest {id} asString bind:value />
	{/snippet}
</Item>
