@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
14 lines (13 loc) • 342 B
TypeScript
import { Path } from '../../types';
type SharedState = {
show?: boolean;
limit?: number;
total?: number;
};
export default function useArrayLimit(path: Path): {
setShowStatus: (show: boolean) => void;
setLimitProps: (props: Omit<SharedState, "show">) => void;
error: Error;
hasReachedLimit: boolean;
};
export {};