/** * WordPress dependencies */ /** * External dependencies */ import clsx from 'clsx'; /** * Internal dependencies */ import './style.scss'; import Crash from './crash.svg'; import Info from './info.svg'; export type BigMessageProps = { readonly className?: string; readonly icon?: 'crash' | 'info'; readonly text?: string; }; export const BigMessage = ( { className, icon, text, }: BigMessageProps ): JSX.Element => (
{ 'crash' === icon ? ( ) : ( ) } { !! text &&

{ text }

}
);