<script lang="ts">
	import Prompt from "$lib/components/Prompt.svelte";
	import SelectModel from "$lib/components/SelectModel.svelte";
	import { TRANSLATION_MODELS } from "$lib/utils/models";

  export let form: Record<string, any>;
  export let onForm: (form: Record<string, any>) => void;
</script>

<SelectModel value={form.model} items={TRANSLATION_MODELS} onChange={(model) => onForm({ ...form, model })} />
<Prompt
  placeholder="Enter your text here..."
  value={form.inputs}
  onChange={(inputs) => onForm({ ...form, inputs })}
/>
