import { FunctionComponent } from 'react';
import UserPicker, { type UserPickerProps } from '../UserPicker';

export type NursePickerProps = Omit<UserPickerProps, 'roleFilter'>;

/**
 * Thin `UserPicker` variant fixed to `roleFilter="nurse"` — the sponsored-nurse assignment picker
 * (`admin/partners/[id]`). The selected `AdminUserSummary.nurseProfileId` is the id the caller actually
 * needs (a different id space than `.id`, the user id) — see `services/admin/types.ts`.
 * @component NursePicker
 */
const NursePicker: FunctionComponent<NursePickerProps> = (props) => <UserPicker {...props} roleFilter="nurse" />;

export default NursePicker;
