"use client"; import { Label } from "@/components/ui/label"; import { Textarea } from "@/components/ui/textarea"; import { useI18n } from "@/i18n/i18n-context"; interface SystemPromptInputProps { value: string; onChange: (value: string) => void; placeholder?: string; helperText?: string; rows?: number; label?: string; } /** * Controlled system prompt textarea used by both QA tester and chat config. * Wraps Label + Textarea + optional helper text in a uniform spacing * scheme so prompt-shaped inputs look consistent across the dashboard. */ export function SystemPromptInput({ value, onChange, placeholder, helperText, rows = 3, label, }: SystemPromptInputProps) { const { t } = useI18n(); return (