import { ClearOutlined } from '@ant-design/icons'; import { Button, Col, Radio, RadioChangeEvent, Row } from 'antd'; import React, { useState } from 'react'; import { TypeInputProps } from './TypeInput'; export const BoolInput = ({ property, set, defaultValue, isPrimary }: TypeInputProps) => { const [value, setValue] = useState(defaultValue as boolean | null); const options = [ { label: 'True', value: 'True', }, { label: 'False', value: 'False', }, ]; const onChange = ({ target: { value } }: RadioChangeEvent) => { setValue(value === 'True') set(value === 'True'); }; return ( {property.optional ? ( ) : null} ); };