import React, { type PropsWithChildren } from 'react' import type { OverlayProps } from '../../atoms/Overlay' import { useFadeEffect } from '../../hooks' import SlideOver from '../SlideOver/SlideOver' import { QuickOrderDrawerProvider, type QuickOrderDrawerProviderProps, } from './provider/QuickOrderDrawerProvider' export type QuickOrderDrawerProps = { /** * ID to find this component in testing tools (e.g.: cypress, testing library, and jest). */ testId?: string /** * Controls the state */ isOpen: boolean /** * Props forwarded to the `Overlay` component. */ overlayProps?: OverlayProps /** * Props forwarded to the `QuickOrderDrawerProvider` component. */ providerProps?: Omit } const QuickOrderDrawer = ({ testId = 'fs-quick-order-drawer', isOpen, overlayProps, providerProps, children, }: PropsWithChildren) => { const { fade } = useFadeEffect() return ( {children} ) } export default QuickOrderDrawer