16 lines
742 B
JavaScript
16 lines
742 B
JavaScript
'use client';
|
|
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';
|