import * as React from 'react' import { theme } from '@latitude-data/client' import AlertText from './text' type Props = React.HTMLAttributes & theme.ui.alert.Props & { html?: boolean centerText?: boolean fontWeight?: 'normal' | 'bold' } const Alert = React.forwardRef( ( { type, scrollable, centerText, fontWeight, html, secondary, className, children, ...props }, ref, ) => { const styles = theme.ui.alert.cssClass({ type, scrollable, secondary, className, }) const textColor = styles.properties.foreground return (
{html ? ( children ) : ( {children} )}
) }, ) export default Alert