feat: deals table
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user