import { isObject } from "lodash-es";
//#region src/utils/toReactNodes/nodes.tsx
function isLinkNode(node) {
	return Boolean(node && isObject(node) && "link" in node);
}
function isNextLinkNode(node) {
	return Boolean(node && isObject(node) && "nextLink" in node);
}
function isIconNode(node) {
	return Boolean(node && isObject(node) && "icon" in node);
}
function isCurrencyAmountNode(node) {
	return Boolean(node && isObject(node) && "currencyAmount" in node);
}
function isClipboardTextFieldNode(node) {
	return Boolean(node && isObject(node) && "clipboardTextField" in node);
}
function isTextNode(node) {
	const allowedKeys = [
		"text",
		"onClick",
		"typography"
	];
	return Boolean(node && isObject(node) && "text" in node && Object.keys(node).every((key) => allowedKeys.includes(key)));
}
const link = (link) => ({ link });
const nextLink = (nextLink) => ({ nextLink });
const currencyAmount = (currencyAmount) => ({ currencyAmount });
const icon = (icon) => ({ icon });
const clipboardTextField = (clipboardTextField) => ({ clipboardTextField });
//#endregion
export { clipboardTextField, currencyAmount, icon, isClipboardTextFieldNode, isCurrencyAmountNode, isIconNode, isLinkNode, isNextLinkNode, isTextNode, link, nextLink };
