Private
Public Access
1
0
Files
power-apps-codeapps-blog-part2/node_modules/@fluentui/react-badge/lib/components/PresenceBadge/PresenceBadge.js

16 lines
735 B
JavaScript

'use client';
import * as React from 'react';
import { usePresenceBadge_unstable } from './usePresenceBadge';
import { usePresenceBadgeStyles_unstable } from './usePresenceBadgeStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
import { renderBadge_unstable } from '../../Badge';
/**
* Define a styled Badge, using the `useBadge_unstable` hook.
*/ export const PresenceBadge = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = usePresenceBadge_unstable(props, ref);
usePresenceBadgeStyles_unstable(state);
useCustomStyleHook_unstable('usePresenceBadgeStyles_unstable')(state);
return renderBadge_unstable(state);
});
PresenceBadge.displayName = 'PresenceBadge';