// React 19 no need `forwardRef` anymore. So just pass if is a React element. if (isReactElement(nodeOrComponent)) { const { props } = nodeOrComponent; if (props && Object.prototype.propertyIsEnumerable.call(props, 'ref')) { return true; } } 🧰 Tools 🪛 Biome (1.9.4) [...
Source File: ThemeColor.js From the-eye-knows-the-garbage with MIT License 6 votes Tag = React.forwardRef(function (_a, ref) { var color = _a.color, check = _a.check, rest = __rest(_a, ["color", "check"]); return React.createElement("div", Object.assign({}, rest, { ...