UNPKG

507 BJavaScriptView Raw
1import _extends from "@babel/runtime/helpers/esm/extends";
2import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3const _excluded = ["ownerState"];
4import * as React from 'react';
5export function prepareForSlot(Component) {
6 return /*#__PURE__*/React.forwardRef(function Slot(props, ref) {
7 const other = _objectWithoutPropertiesLoose(props, _excluded);
8 return /*#__PURE__*/React.createElement(Component, _extends({}, other, {
9 ref
10 }));
11 });
12}
\No newline at end of file