import { useNavigation, type ParamListBase } from '@react-navigation/core';
import type { TrueSheetNavigationProp } from './types';
/**
* Hook to access TrueSheet navigation with the resize helper.
*
* @example
* ```tsx
* function MySheet() {
* const navigation = useTrueSheetNavigation();
*
* // Resize to a specific detent
* const handleExpand = () => {
* navigation.resize(1); // Resize to second detent
* };
*
* return (
*
* );
* }
* ```
*/
export const useTrueSheetNavigation = <
T extends ParamListBase = ParamListBase,
>(): TrueSheetNavigationProp => useNavigation>();