Fix(SW-1711)/(SW-2077): Export icons individually * fix(SW-1711): export icons individually Approved-by: Michael Zetterberg Approved-by: Erik Tiekstra
17 lines
471 B
TypeScript
17 lines
471 B
TypeScript
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
|
|
|
|
import styles from "./surprises.module.css"
|
|
|
|
import type { HeaderProps } from "@/types/components/blocks/surprises"
|
|
|
|
export default function Header({ onClose, children }: HeaderProps) {
|
|
return (
|
|
<div className={styles.top}>
|
|
{children}
|
|
<button onClick={onClose} type="button" className={styles.close}>
|
|
<MaterialIcon icon="close" />
|
|
</button>
|
|
</div>
|
|
)
|
|
}
|