15 lines
969 B
JavaScript
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';
|