import { isValidElement, type ComponentProps, type ComponentType, type ReactNode, } from "react"; // The installer bundles the pinned Lucide collection as local ESM and types. export * from "./_ynrlib/lucide.js"; export type IconProps = ComponentProps<"svg">; /** React.forwardRef and memo components are objects, while rendered icons are elements. */ export function isIconComponent( value: ReactNode | ComponentType, ): value is ComponentType { if (typeof value === "function") return true; if ( !value || typeof value !== "object" || isValidElement(value) || !("$$typeof" in value) ) return false; return ( value.$$typeof === Symbol.for("react.forward_ref") || value.$$typeof === Symbol.for("react.memo") ); } /** Local icon references stay editable when the CLI copies component source. */ export function plus(props: IconProps) { return ( ); }