@ozen-ui/kit
Version:
React component library
15 lines (14 loc) • 784 B
TypeScript
import type { RefObject } from 'react';
import type { StoredValue } from '../../../hooks/useStoredValue';
import type { BottomSheetBaseBlocksRefs, BottomSheetBaseContentRef, BottomSheetBaseGetMaxHeight, BottomSheetBaseMaxHeight } from '../entities';
import type { BottomSheetBaseRegisterReady } from '../hooks';
export declare const useBottomSheetBaseHeight: ({ contentRef, blocksRefs, customMaxHeight: customMaxHeightProp, registerReady, }: {
contentRef: RefObject<BottomSheetBaseContentRef>;
blocksRefs: StoredValue<BottomSheetBaseBlocksRefs>;
customMaxHeight: BottomSheetBaseMaxHeight | BottomSheetBaseGetMaxHeight | undefined;
registerReady: BottomSheetBaseRegisterReady;
}) => {
minHeight: number;
maxHeight: number;
recalculateHeight: () => void;
};