fix(SW-3691): Setup one prettier config for whole repo * Setup prettierrc in root and remove other configs Approved-by: Joakim Jäderberg Approved-by: Linus Flood
25 lines
588 B
TypeScript
25 lines
588 B
TypeScript
import { cva } from "class-variance-authority"
|
|
|
|
import { AlertTypeEnum } from "@scandic-hotels/common/constants/alert"
|
|
|
|
import styles from "./alert.module.css"
|
|
|
|
export const alertVariants = cva(styles.alert, {
|
|
variants: {
|
|
variant: {
|
|
inline: styles.inline,
|
|
banner: styles.banner,
|
|
},
|
|
type: {
|
|
[AlertTypeEnum.Info]: styles.info,
|
|
[AlertTypeEnum.Warning]: styles.warning,
|
|
[AlertTypeEnum.Alarm]: styles.alarm,
|
|
[AlertTypeEnum.Success]: styles.success,
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
variant: "inline",
|
|
type: AlertTypeEnum.Info,
|
|
},
|
|
})
|