/
var
/
www
/
vhosts
/
ihelp.ro
/
ajutam.ro
/
wp-content
/
plugins
/
give
/
blocks
/
components
/
blank-slate
/
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/blocks/components/blank-slate
mkdir
upload
Name
Size
Mode
Actions
index.js
949
0644
edit
dl
rm
Edit:
/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/blocks/components/blank-slate/index.js
(949B)
/** * WordPress dependencies */ const { __ } = wp.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;
Save
cmd:
run