Feature/SW-1736 floating booking widget * feature: Add floating booking widget on start page SW-1736 * fix: Make sure we don't try to use IntersectionObserver on the server * fix: make sure that we disconnect the intersectionobserver when dismounting * fix: pass searchparams to floating bookingwidget Approved-by: Michael Zetterberg
17 lines
319 B
TypeScript
17 lines
319 B
TypeScript
import { cva } from "class-variance-authority"
|
|
|
|
import styles from "./form.module.css"
|
|
|
|
export const bookingWidgetVariants = cva(styles.section, {
|
|
variants: {
|
|
type: {
|
|
default: styles.default,
|
|
full: styles.full,
|
|
compact: styles.compact,
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
type: "full",
|
|
},
|
|
})
|