( colors: MaterializeTheme["colors"], )
| 43 | } |
| 44 | |
| 45 | function getColorScheme( |
| 46 | colors: MaterializeTheme["colors"], |
| 47 | ): Record<AlertVariant, { border: string; background: string }> { |
| 48 | return { |
| 49 | error: { |
| 50 | border: colors.border.error, |
| 51 | background: colors.background.error, |
| 52 | }, |
| 53 | info: { |
| 54 | border: colors.border.info, |
| 55 | background: colors.background.info, |
| 56 | }, |
| 57 | warning: { |
| 58 | border: colors.border.warn, |
| 59 | background: colors.background.warn, |
| 60 | }, |
| 61 | success: { |
| 62 | border: colors.accent.darkGreen, |
| 63 | background: colors.accent.darkGreen, |
| 64 | }, |
| 65 | }; |
| 66 | } |
| 67 | |
| 68 | export const Alert = forwardRef( |
| 69 | ( |
no outgoing calls
no test coverage detected