@onesy/ui-react
Version:
UI for React
40 lines • 927 B
JavaScript
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
const _excluded = ["children"];
import { c as _c } from "react/compiler-runtime";
import React from 'react';
import { reset } from '@onesy/style-react';
import { jsx as _jsx } from "react/jsx-runtime";
const useReset = reset();
const Reset = props => {
const $ = _c(5);
let children;
let other;
if ($[0] !== props) {
var _props = props;
({
children
} = _props);
other = _objectWithoutProperties(_props, _excluded);
_props;
$[0] = props;
$[1] = children;
$[2] = other;
} else {
children = $[1];
other = $[2];
}
useReset(other);
let t0;
if ($[3] !== children) {
t0 = /*#__PURE__*/_jsx(React.Fragment, {
children: children
});
$[3] = children;
$[4] = t0;
} else {
t0 = $[4];
}
return t0;
};
Reset.displayName = 'onesy-Reset';
export default Reset;