Files
web/apps/scandic-web/components/HeroVideo/index.tsx
Erik Tiekstra f06e466827 Feat/BOOK-240 hero video
Approved-by: Chuma Mcphoy (We Ahead)
Approved-by: Christel Westerberg
2025-12-11 08:35:27 +00:00

30 lines
645 B
TypeScript

import { cx } from "class-variance-authority"
import { VideoPlayer } from "@scandic-hotels/design-system/VideoPlayer"
import styles from "./heroVideo.module.css"
import type { ComponentProps } from "react"
interface HeroVideoProps
extends Omit<ComponentProps<typeof VideoPlayer>, "className" | "variant"> {
className?: string
isFullWidth?: boolean
}
export function HeroVideo({
className,
isFullWidth,
...props
}: HeroVideoProps) {
return (
<div
className={cx(styles.videoWrapper, className, {
[styles.fullWidth]: isFullWidth,
})}
>
<VideoPlayer variant="hero" {...props} />
</div>
)
}