import React from "react"; import { Tooltip } from "antd"; import { CheckOutlined, CloseOutlined } from "@ant-design/icons"; import { BooleanFieldProps } from "../types"; /** * This field is used to display boolean values. It uses the {@link https://ant.design/components/tooltip/#header ``} values from Ant Design. * * @see {@link https://refine.dev/docs/ui-frameworks/antd/components/fields/boolean} for more details. */ export const BooleanField: React.FC = ({ value, valueLabelTrue = "true", valueLabelFalse = "false", trueIcon = , falseIcon = , ...rest }) => { return ( {value ? {trueIcon} : {falseIcon}} ); };