import { PropsWithChildren, useState } from 'react'; import { QueriesDrawerContext, Tabs } from './QueriesDrawerContext'; type Props = { setDrawerOpened?: (value: boolean) => {}; queryLibraryAvailable?: boolean; } & PropsWithChildren; export function QueriesDrawerContextProviderMock(props: Props) { const [selectedTab, setSelectedTab] = useState(Tabs.RichHistory); const [drawerOpened, setDrawerOpened] = useState(false); return ( { props.setDrawerOpened?.(value); setDrawerOpened(value); }, }} > {props.children} ); }