| 123456789101112131415161718192021222324252627282930313233343536373839 |
- "use client";
- interface ConversationSearchProps {
- value: string;
- onChange: (value: string) => void;
- }
- export function ConversationSearch({
- value,
- onChange,
- }: ConversationSearchProps) {
- return (
- <div className="p-4 border-b border-gray-200">
- <div className="relative">
- <input
- type="text"
- placeholder="Q Search"
- value={value}
- onChange={(event) => onChange(event.target.value)}
- className="w-full px-3 py-2 pl-9 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-400 text-sm"
- />
- <svg
- className="absolute left-2.5 top-2.5 w-4 h-4 text-gray-400"
- fill="none"
- stroke="currentColor"
- viewBox="0 0 24 24"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth={2}
- d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
- />
- </svg>
- </div>
- </div>
- );
- }
|