19 lines
942 B
JavaScript
19 lines
942 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
Object.defineProperty(exports, "getIntrinsicElementProps", {
|
||
|
enumerable: true,
|
||
|
get: function() {
|
||
|
return getIntrinsicElementProps;
|
||
|
}
|
||
|
});
|
||
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
||
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
||
|
const _getNativeElementProps = require("../utils/getNativeElementProps");
|
||
|
const getIntrinsicElementProps = (/** The slot's default element type (e.g. 'div') */ tagName, /** The component's props object */ props, /** List of native props to exclude from the returned value */ excludedPropNames)=>{
|
||
|
var _props_as;
|
||
|
// eslint-disable-next-line deprecation/deprecation
|
||
|
return (0, _getNativeElementProps.getNativeElementProps)((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : tagName, props, excludedPropNames);
|
||
|
};
|