import { FormControlLabel } from "@mui/material"; import { FC } from "react"; import { IColumnFilterValue } from "shared/model/types"; import { applyFilter } from "../../lib"; import { IProps } from "../../model"; import Styled from "./BooleanInput.style"; export const BooleanInput: FC = ({ setValue, value }) => { function onClick(newValue: IColumnFilterValue) { setValue(newValue); applyFilter(newValue); } return ( onClick({ 1: "", 2: "" })} size="small" /> } label={"All"} /> onClick({ 1: "true", 2: "" })} size="small" /> } label={"Yes"} /> onClick({ 1: "", 2: "true" })} size="small" /> } label={"No"} /> ); }; type Props = Omit;