This commit is contained in:
Bel Curcio 2021-06-03 20:21:08 -03:00
parent 45554c68d6
commit bb9cfa0cd1

View File

@ -4,13 +4,10 @@ import { UserNav } from '@components/common'
import cn from 'classnames'
import s from './SidebarLayout.module.css'
interface BaseProps {
className?: string
}
type ComponentProps =
| (BaseProps & { handleClose: () => any })
| (BaseProps & { handleBack: () => any })
type ComponentProps = { className?: string } & (
| { handleClose: () => any; handleBack?: never }
| { handleBack: () => any; handleClose?: never }
)
const SidebarLayout: FC<ComponentProps> = ({
children,