UNPKG

@cgi-learning-hub/ui

Version:

@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features

2 lines (1 loc) 635 B
"use strict";const a=require("./index-kjfz41UI.cjs"),l=require("./chainPropTypes-CEUi6Jb4.cjs");function s(n){const{prototype:e={}}=n;return!!e.isReactComponent}function u(n,e,i,r,p){const t=n[e],c=p||e;if(t==null||typeof window>"u")return null;let o;return typeof t=="function"&&!s(t)&&(o="Did you accidentally provide a plain function component instead?"),o!==void 0?new Error(`Invalid ${r} \`${c}\` supplied to \`${i}\`. Expected an element type that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const f=l.chainPropTypes(a.PropTypes.elementType,u);exports.elementTypeAcceptingRef=f;