({
children,
title,
variant,
}: {
title: React.ReactNode;
children: React.ReactNode;
variant: AlertVariant;
})
| 201 | ); |
| 202 | |
| 203 | export const AlertBannerContent = ({ |
| 204 | children, |
| 205 | title, |
| 206 | variant, |
| 207 | }: { |
| 208 | title: React.ReactNode; |
| 209 | children: React.ReactNode; |
| 210 | variant: AlertVariant; |
| 211 | }) => { |
| 212 | const { colors } = useTheme<MaterializeTheme>(); |
| 213 | |
| 214 | const colorScheme = getColorScheme(colors); |
| 215 | return ( |
| 216 | <> |
| 217 | <Text |
| 218 | textStyle="text-ui-med" |
| 219 | borderRight="1px solid" |
| 220 | borderColor={colorScheme[variant].border} |
| 221 | paddingRight="6" |
| 222 | > |
| 223 | {title} |
| 224 | </Text> |
| 225 | <HStack paddingLeft="6" alignItems="start" flexGrow="1"> |
| 226 | {children} |
| 227 | </HStack> |
| 228 | </> |
| 229 | ); |
| 230 | }; |
| 231 | |
| 232 | export default Alert; |
nothing calls this directly
no test coverage detected