@commercetools-uikit/hooks
Version:
A collection of React hooks used across some of the UI-Kit components.
14 lines (13 loc) • 387 B
TypeScript
export type TPaginationDefinition = {
page: number;
perPage: number;
};
export type TState = {
value: number;
onChange: (value: number) => void;
};
export type TPaginationState = {
[P in keyof TPaginationDefinition]: TState;
};
declare const usePaginationState: (initialValues?: Partial<TPaginationDefinition>) => TPaginationState;
export default usePaginationState;