import { Gridicon } from '@automattic/components'; import styled from '@emotion/styled'; import { Button, IconType } from '@wordpress/components'; import clsx from 'clsx'; import { ReactNode } from 'react'; import { Badge } from 'calypso/performance-profiler/components/badge'; import './style.scss'; type Props = { title?: string; message: string | ReactNode; ctaText?: string; ctaHref?: string; secondaryMessage?: string; displayBadge?: boolean; ctaIcon?: string; isErrorMessage?: boolean; }; export const ErrorSecondLine = styled.span` color: var( --studio-red-5 ); font-weight: 400; line-height: 20px; `; export const MessageDisplay = ( { displayBadge = false, title, message, ctaText, ctaHref, secondaryMessage, ctaIcon = '', isErrorMessage = false, }: Props ) => { return (
{ message }
{ ctaText && ctaHref && ( ) }{ secondaryMessage }
}