26 lines
1.2 KiB
JavaScript
26 lines
1.2 KiB
JavaScript
'use client';
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "CompoundButton", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return CompoundButton;
|
|
}
|
|
});
|
|
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
const _renderCompoundButton = require("./renderCompoundButton");
|
|
const _useCompoundButton = require("./useCompoundButton");
|
|
const _useCompoundButtonStylesstyles = require("./useCompoundButtonStyles.styles");
|
|
const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
|
|
const CompoundButton = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
const state = (0, _useCompoundButton.useCompoundButton_unstable)(props, ref);
|
|
(0, _useCompoundButtonStylesstyles.useCompoundButtonStyles_unstable)(state);
|
|
(0, _reactsharedcontexts.useCustomStyleHook_unstable)('useCompoundButtonStyles_unstable')(state);
|
|
return (0, _renderCompoundButton.renderCompoundButton_unstable)(state);
|
|
// Casting is required due to lack of distributive union to support unions on @types/react
|
|
});
|
|
CompoundButton.displayName = 'CompoundButton';
|