"use client"; import React from "react"; import { Search } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; export default function SearchQueryBox({ qDraft, onQDraftChange, onSubmit, currentQuery, isSubmitting, canSearch, }) { return ( // Important for flex layouts: // - w-full ensures the box fills its container width. // - min-w-0 allows the input row to shrink without overflow.
onQDraftChange(e.target.value)} placeholder="z. B. Bridgestone, Rechnung, Kundennummer…" disabled={isSubmitting} // Make the input take the remaining space next to the button. className="flex-1 min-w-0" />
{currentQuery ? (
Aktuelle Suche:{" "} {currentQuery}
) : (
Tipp: Die Suche ist URL-basiert und kann als Link geteilt werden.
)}
); }