feat(BOOK-62): Added new InfoCard component and using that on hotel pages

Approved-by: Bianca Widstam
This commit is contained in:
Erik Tiekstra
2025-11-04 07:39:33 +00:00
parent 10bf4d08d9
commit 4491d1de8e
27 changed files with 1119 additions and 663 deletions

View File

@@ -1,8 +1,9 @@
import { cx } from 'class-variance-authority'
import { MaterialIcon } from '../Icons/MaterialIcon'
import styles from './imageFallback.module.css'
interface ImageFallbackProps {
interface ImageFallbackProps extends React.HTMLAttributes<HTMLDivElement> {
width?: string
height?: string
}
@@ -10,9 +11,15 @@ interface ImageFallbackProps {
export default function ImageFallback({
width = '100%',
height = '100%',
className,
...props
}: ImageFallbackProps) {
return (
<div className={styles.imageFallback} style={{ width, height }}>
<div
{...props}
className={cx(styles.imageFallback, className)}
style={{ width, height }}
>
<MaterialIcon
icon="imagesmode"
size={32}