"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.forwardRefWithGeneric = void 0;
const react_1 = require("react");
/**
 * Proxy для forwardRef, который позволяет использовать generic для forwardRef. Из коробки forwardRef пользоваться generic'ом не дает
 * @example
 * ```ts
 * type Props<T> = {
 *   prop: T;
 * };
 *
 * const InnerComponent = <T,>({ prop }: Props<T>) => null;
 *
 * const Component = forwardRefWithGeneric(InnerComponent);
 *
 * Component<string>
 * ```
 */
const forwardRefWithGeneric = (render) => 
// biome-ignore lint/suspicious/noExplicitAny: <>
(0, react_1.forwardRef)(render);
exports.forwardRefWithGeneric = forwardRefWithGeneric;
