import React from "react"; import { Tooltip } from "@mantine/core"; import { IconX, IconCheck } from "@tabler/icons"; import { BooleanFieldProps } from "../types"; /** * This field is used to display boolean values. It uses the {@link https://mantine.dev/core/tooltip/ ``} values from Mantine. * * @see {@link https://refine.dev/docs/api-reference/mantine/components/fields/boolean} for more details. */ export const BooleanField: React.FC = ({ value, valueLabelTrue = "true", valueLabelFalse = "false", trueIcon, falseIcon, svgIconProps, ...rest }) => { return ( {value ? trueIcon ?? : falseIcon ?? } ); };