import { jsx as i } from "@emotion/react/jsx-runtime";
import { getPropertyByString as l } from "@m4l/core";
import p from "react";
import { BooleanFormatter as f } from "../../../formatters/BooleanFormatter/BooleanFormatter.js";
function g(t) {
  const { fieldValue: r, presentationType: n, Component: a = p.Fragment } = t;
  return (m) => {
    const e = l(m.row, r);
    let o;
    return typeof e == "boolean" ? o = e : o = void 0, /* @__PURE__ */ i(
      f,
      {
        presentationType: n,
        value: o,
        Component: a
      }
    );
  };
}
export {
  g as ColumnBooleanFormatter
};
