// src/types/typeGuard.tsx
import { isValidElement } from "react";
function isReactNode(value) {
  return typeof value === "string" || typeof value === "number" || typeof value === "boolean" || value === null || value === void 0 || /* eslint-disable @typescript-eslint/no-unsafe-argument */
  isValidElement(value) || Array.isArray(value) && value.every(isReactNode);
}

export {
  isReactNode
};
