<script lang="ts">
	import { Label } from '$lib/components/ui/label';
	import type { LineDescriptions } from '$lib/api/dashboard/a76/items';

	let { descriptions = $bindable() }: { descriptions: LineDescriptions } = $props();
</script>

<fieldset class="border rounded-md p-3 space-y-3">
	<legend class="text-xs font-semibold px-2 uppercase">Serial Numbers</legend>
	
	<div class="space-y-2">
		<Label for="series" class="text-xs">Serial Numbers:</Label>
		<textarea 
			id="series"
			bind:value={descriptions.extra_description}
			class="flex min-h-[100px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
			placeholder="Enter serial numbers, one per line..."
		></textarea>
	</div>

	<div class="text-xs text-muted-foreground">
		You can enter multiple serial numbers, one per line
	</div>
</fieldset>
