Files
web/apps/scandic-web/components/Hero/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

26 lines
551 B
TypeScript

import { cx } from "class-variance-authority"
import Image from "@scandic-hotels/design-system/Image"
import styles from "./hero.module.css"
import type { ComponentProps } from "react"
type HeroProps = Pick<
ComponentProps<typeof Image>,
"className" | "alt" | "src" | "focalPoint" | "dimensions"
>
export default async function Hero({ className, alt, ...props }: HeroProps) {
return (
<Image
className={cx(styles.hero, className)}
alt={alt}
height={480}
width={1196}
priority
{...props}
/>
)
}