![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mets.corals.io/wp-content/plugins/give/blocks/components/blank-slate/ |
/** * WordPress dependencies */ import { __ } from '@wordpress/i18n' /** * Internal dependencies */ import GiveHelpLink from '../help-link'; import PlaceholderAnimation from '../placeholder-animation'; import GiveIcon from '@givewp/components/GiveIcon'; const GiveBlankSlate = ( props ) => { const { noIcon, isLoader, title, description, children, helpLink, } = props; const blockLoading = ( <PlaceholderAnimation /> ); const blockLoaded = ( <div className="block-loaded"> { !! title && ( <h3 className="give-blank-slate__heading">{ title }</h3> ) } { !! description && ( <p className="give-blank-slate__message">{ description }</p> ) } { children } { !! helpLink && ( <GiveHelpLink /> ) } </div> ); return ( <div className="give-blank-slate"> { ! noIcon && <GiveIcon size="80" className="give-blank-slate__image" /> } { !! isLoader ? blockLoading : blockLoaded } </div> ); }; export default GiveBlankSlate;