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