Files
web/apps/scandic-web/components/HotelReservation/MyStay/Modal/Button/index.tsx
Simon Emanuelsson db289b80b1 feat: refactor NewDates, clean up legacy code
This reverts commit 0c7836fa59.
2025-05-03 21:45:45 +02:00

31 lines
800 B
TypeScript

"use client"
import { Button as ButtonRAC } from "react-aria-components"
import {
MaterialIcon,
type MaterialIconProps,
} from "@scandic-hotels/design-system/Icons/MaterialIcon"
import { Typography } from "@scandic-hotels/design-system/Typography"
import styles from "./button.module.css"
interface ButtonProps extends React.PropsWithChildren {
icon: MaterialIconProps["icon"]
isDisabled?: boolean
}
export default function Button({
children,
icon,
isDisabled = false,
}: ButtonProps) {
return (
<ButtonRAC className={styles.button} isDisabled={isDisabled}>
<MaterialIcon color="Icon/Interactive/Default" icon={icon} />
<Typography variant="Body/Paragraph/mdBold">
<span className={styles.text}>{children}</span>
</Typography>
</ButtonRAC>
)
}