mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 07:26:59 +00:00
Changes
This commit is contained in:
parent
45554c68d6
commit
bb9cfa0cd1
@ -4,13 +4,10 @@ import { UserNav } from '@components/common'
|
|||||||
import cn from 'classnames'
|
import cn from 'classnames'
|
||||||
import s from './SidebarLayout.module.css'
|
import s from './SidebarLayout.module.css'
|
||||||
|
|
||||||
interface BaseProps {
|
type ComponentProps = { className?: string } & (
|
||||||
className?: string
|
| { handleClose: () => any; handleBack?: never }
|
||||||
}
|
| { handleBack: () => any; handleClose?: never }
|
||||||
|
)
|
||||||
type ComponentProps =
|
|
||||||
| (BaseProps & { handleClose: () => any })
|
|
||||||
| (BaseProps & { handleBack: () => any })
|
|
||||||
|
|
||||||
const SidebarLayout: FC<ComponentProps> = ({
|
const SidebarLayout: FC<ComponentProps> = ({
|
||||||
children,
|
children,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user