UNPKG

@vnmfify/core

Version:

```shell npm i @vnmfify/core -S ```

9 lines (8 loc) 462 B
import { ReactNode } from "react"; import { PickerOptionObject } from "./picker.shared"; export declare function mapToChildrenOptions(children: ReactNode, depth: number, maxDepth: number): PickerOptionObject[] | null | undefined; interface UsePickerOptionsOptions { depth?: number; } declare function usePickerOptions(children?: ReactNode, options?: UsePickerOptionsOptions): PickerOptionObject[] | null | undefined; export default usePickerOptions;