Chore/SW-2878 extract booking confirmation pag * chore(SW-2878): Moved booking confirmation page to booking-flow package * chore(SW-2878): Fixed promo styles as per design * chore(SW-2878): Kept tiny duplicate function to avoid export from booking-flow package Approved-by: Anton Gunnarsson
22 lines
575 B
TypeScript
22 lines
575 B
TypeScript
import { sidePanelVariants } from "./variants"
|
|
|
|
import styles from "./sidePanel.module.css"
|
|
|
|
import type { VariantProps } from "class-variance-authority"
|
|
|
|
interface SidePanelProps extends VariantProps<typeof sidePanelVariants> {}
|
|
|
|
export function SidePanel({
|
|
children,
|
|
variant,
|
|
}: React.PropsWithChildren<SidePanelProps>) {
|
|
const classNames = sidePanelVariants({ variant })
|
|
return (
|
|
<div className={classNames}>
|
|
<div className={styles.hider} />
|
|
<div className={styles.wrapper}>{children}</div>
|
|
<div className={styles.shadow} />
|
|
</div>
|
|
)
|
|
}
|