Files
2025-03-07 19:22:02 +01:00

15 lines
728 B
JavaScript

import * as React from 'react';
import { useCounterBadge_unstable } from './useCounterBadge';
import { useCounterBadgeStyles_unstable } from './useCounterBadgeStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
import { renderBadge_unstable } from '../Badge/index';
/**
* Define a styled CounterBadge, using the `useCounterBadge_unstable` hook.
*/ export const CounterBadge = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useCounterBadge_unstable(props, ref);
useCounterBadgeStyles_unstable(state);
useCustomStyleHook_unstable('useCounterBadgeStyles_unstable')(state);
return renderBadge_unstable(state);
});
CounterBadge.displayName = 'CounterBadge';