'use client'; import * as React from 'react'; import { renderSplitButton_unstable } from './renderSplitButton'; import { useSplitButton_unstable } from './useSplitButton'; import { useSplitButtonStyles_unstable } from './useSplitButtonStyles.styles'; import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts'; /** * SplitButtons are a grouping of two interactive surfaces where interacting with the first one triggers a primary * action, while interacting with the second one opens a menu with secondary actions. */ export const SplitButton = /*#__PURE__*/ React.forwardRef((props, ref)=>{ const state = useSplitButton_unstable(props, ref); useSplitButtonStyles_unstable(state); useCustomStyleHook_unstable('useSplitButtonStyles_unstable')(state); return renderSplitButton_unstable(state); // Casting is required due to lack of distributive union to support unions on @types/react }); SplitButton.displayName = 'SplitButton';