export default function Select({ label, name, value, onChange, disabled = false, options = [] }) {
    return (
      <div>
        <label className="block text-gray-600 mb-1">{label}</label>
        <select
          name={name}
          value={value}
          onChange={onChange}
          disabled={disabled}
          className="w-full border rounded-md px-3 py-2 text-sm bg-gray-50 focus:outline-none focus:ring-2 focus:ring-blue-500 disabled:bg-gray-200"
        >
          <option value="">Select</option>
          {options.map((opt) => (
            <option key={opt} value={opt}>{opt}</option>
          ))}
        </select>
      </div>
    );
  }
  