import React from "react"; import { Checkbox } from "antd"; export interface Props { disabled?: boolean; value?: string; onChange?: (data?: number) => void; id?: string; } const Index: React.FC = (props) => { const { onChange, disabled, value, id } = props; return ( onChange(e.target.checked ? 1 : undefined)} /> ) }; export default Index;