import { MaterialIcon, type MaterialIconSetIconProps, } from "../Icons/MaterialIcon" import { AlertTypeEnum } from "@scandic-hotels/common/constants/alert" import type { JSX } from "react" import type { AlertProps } from "./alert" interface IconByAlertProps { alertType: AlertTypeEnum variant?: AlertProps["variant"] } export function IconByAlertType({ alertType, variant = "inline", ...props }: IconByAlertProps & MaterialIconSetIconProps): JSX.Element { switch (alertType) { case AlertTypeEnum.Alarm: return ( ) case AlertTypeEnum.Warning: return ( ) case AlertTypeEnum.Success: return ( ) case AlertTypeEnum.Info: default: return ( ) } }