Files
powerpoint-toolbox/node_modules/@fluentui/react-teaching-popover/lib/components/TeachingPopoverCarouselPageCount/TeachingPopoverCarouselPageCount.js
T
2025-03-07 19:22:02 +01:00

15 lines
969 B
JavaScript

import * as React from 'react';
import { useTeachingPopoverCarouselPageCount_unstable } from './useTeachingPopoverCarouselPageCount';
import { renderTeachingPopoverCarouselPageCount_unstable } from './renderTeachingPopoverCarouselPageCount';
import { useTeachingPopoverCarouselPageCountStyles_unstable } from './useTeachingPopoverCarouselPageCountStyles.styles';
/**
* TeachingPopoverCarouselPageCount is a simple interface for rendering based on current and total page count
*
* The child render function will provide both current and total page numbers for customization.
*/ export const TeachingPopoverCarouselPageCount = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useTeachingPopoverCarouselPageCount_unstable(props, ref);
useTeachingPopoverCarouselPageCountStyles_unstable(state);
return renderTeachingPopoverCarouselPageCount_unstable(state);
});
TeachingPopoverCarouselPageCount.displayName = 'TeachingPopoverCarouselPageCount';