Skip to content

Commit e52d861

Browse files
committed
hook export
1 parent 90cb08e commit e52d861

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/lib/Components/Carousel/Hook/useCarousel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type carouselReducerAction = {
1313
payload: any;
1414
};
1515

16-
const carouselReducer = (
16+
export const carouselReducer = (
1717
state: carouselState,
1818
action: carouselReducerAction
1919
) => {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
export { default as Carousel } from './Carousel';
22
export { NextArrow, PrevArrow } from './components/Arrows';
33
export { CarouselPagination } from './components/Pagination';
4+
export { useCarousel, carouselReducer } from './Hook/useCarousel';
45
export type { CarouselProps } from './Carousel';
6+
export type {
7+
carouselReducerAction,
8+
carouselState,
9+
getSlidePropsType,
10+
} from './Hook/useCarousel';

0 commit comments

Comments
 (0)