Files
Fulfillment-Frontend/src/pages/DealsPage/components/DealStatusSelect/DealStatusSelect.tsx
2024-09-27 04:47:04 +03:00

23 lines
553 B
TypeScript

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;