/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/blocks/components/blank-slate
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 = (
);
const blockLoaded = (
{ !! title && (
{ title }
) }
{ !! description && (
{ description }
) }
{ children }
{ !! helpLink && (
) }
);
return (
{ ! noIcon && }
{ !! isLoader ? blockLoading : blockLoaded }
);
};
export default GiveBlankSlate;