import type { useLunatic } from '../../use-lunatic/use-lunatic'; import { objectKeys } from '../../utils/object'; import { type PropsWithChildren, useState } from 'react'; import type { LunaticState } from '../../use-lunatic/type'; type Props = PropsWithChildren< Pick< ReturnType, | 'goPreviousPage' | 'goNextPage' | 'goToPage' | 'isLastPage' | 'isFirstPage' | 'pageTag' | 'pager' > > & { hasPageResponse: unknown; onLogData: () => void; getMultimode: LunaticState['getMultimode'] | null; onLogComponents: () => void; }; export function OrchestratorSidebar({ goPreviousPage, goNextPage, goToPage, isLastPage, isFirstPage, pageTag, pager, children, getMultimode, hasPageResponse, onLogData, onLogComponents, }: Props) { return ( ); } function MultiMode(props: Pick) { const [state, setState] = useState>({}); const onClick = () => { setState(props.getMultimode); }; return (

Multimode

{JSON.stringify(state, null, 2)}
); }