Private
Public Access
1
0
Files

22 lines
1.2 KiB
JavaScript

'use client';
import * as React from 'react';
import { useTeachingPopoverFooter_unstable } from './useTeachingPopoverFooter';
import { renderTeachingPopoverFooter_unstable } from './renderTeachingPopoverFooter';
import { useTeachingPopoverFooterStyles_unstable } from './useTeachingPopoverFooterStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* Define a styled TeachingPopoverFooter, using the `useTeachingPopoverFooter_unstable` and `useTeachingPopoverFooterStyles_unstable`
* hooks.
*
* TeachingPopoverFooter will provide both a secondary and primary button for the TeachingPopover,
* and handle Popover functionality such as closing the popup.
*
* Users must provide the localized text for each button within the footer via slots.
*/ export const TeachingPopoverFooter = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useTeachingPopoverFooter_unstable(props, ref);
useTeachingPopoverFooterStyles_unstable(state);
useCustomStyleHook_unstable('useTeachingPopoverFooterStyles_unstable')(state);
return renderTeachingPopoverFooter_unstable(state);
});
TeachingPopoverFooter.displayName = 'TeachingPopoverFooter';