ConversationSearch.tsx 948 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. "use client";
  2. import { Input } from "@/components/ui/input";
  3. interface ConversationSearchProps {
  4. value: string;
  5. onChange: (value: string) => void;
  6. }
  7. export function ConversationSearch({
  8. value,
  9. onChange,
  10. }: ConversationSearchProps) {
  11. return (
  12. <div className="p-4 min-w-0">
  13. <div className="relative min-w-0">
  14. <Input
  15. type="text"
  16. placeholder="Q Search"
  17. value={value}
  18. onChange={(event) => onChange(event.target.value)}
  19. className="w-full pl-9"
  20. />
  21. <svg
  22. className="absolute left-2.5 top-2.5 w-4 h-4 text-muted-foreground"
  23. fill="none"
  24. stroke="currentColor"
  25. viewBox="0 0 24 24"
  26. >
  27. <path
  28. strokeLinecap="round"
  29. strokeLinejoin="round"
  30. strokeWidth={2}
  31. d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
  32. />
  33. </svg>
  34. </div>
  35. </div>
  36. );
  37. }