Sha256: 98d9b0ea41f85e2d0cb031fb826adf4a774d3ec2105c1e4d41c3d1dc42c0cfc1
Contents?: true
Size: 1.05 KB
Versions: 44
Compression:
Stored size: 1.05 KB
Contents
/* @flow */ import React from 'react' import classnames from 'classnames' import { Icon, Title } from '../' import { spacing } from '../utilities/spacing.js' const iconMap = { success: 'check', error: 'exclamation-triangle', neutral: 'info-circle', tip: 'info-circle', } type FixedConfirmationToastProps = { className?: String, data?: String, id?: String, status?: "success" | "error" | "neutral" | "tip", text: String, } const FixedConfirmationToast = (props: FixedConfirmationToastProps) => { const { className, status = 'neutral', text } = props const css = classnames( className, `pb_fixed_confirmation_toast_kit_${status}`, spacing(props) ) const icon = iconMap[status] return ( <div className={css}> <If condition={icon}> <Icon className="pb_icon" fixed_width icon={icon} /> </If> <Title className="pb_fixed_confirmation_toast_text" size={4} text={text} /> </div> ) } export default FixedConfirmationToast
Version data entries
44 entries across 44 versions & 1 rubygems