import ObjectSelect, {ObjectSelectProps} from "../../../../components/ObjectSelect/ObjectSelect.tsx";
import {FC} from "react";
import {DealStatuses} from "../../../../shared/enums/DealStatus.ts";

type DealStatus = {
    name: string;
    id: number
}
type Props = Omit<ObjectSelectProps<DealStatus>, 'data'>;

const DealStatusSelect: FC<Props> = (props) => {
    const data: DealStatus[] = DealStatuses;
    return (
        <ObjectSelect
            data={data}
            {...props}
        />
    )
}
export default DealStatusSelect;