'use client';

import { Group } from '@/ui/Group';
import { Input } from '@/ui/Input';
import { Search } from 'lucide-react';

interface DriverSearchBarProps {
  query: string;
  onChange: (query: string) => void;
}

export function DriverSearchBar({ query, onChange }: DriverSearchBarProps) {
  return (
    <Group fullWidth>
      <Input
        value={query}
        onChange={(e) => onChange(e.target.value)}
        placeholder="Search drivers by name or nationality..."
        icon={<Search size={20} />}
      />
    </Group>
  );
}
