mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
28 lines
736 B
JavaScript
28 lines
736 B
JavaScript
/* eslint-disable @wordpress/i18n-ellipsis */
|
|
const { useBlockProps } = wp.blockEditor
|
|
const { __ } = wp.i18n
|
|
|
|
const NAME = '<wordpress-name>'
|
|
|
|
export default ({ attributes }) => {
|
|
const blockProps = useBlockProps.save()
|
|
return (
|
|
<div
|
|
className={NAME + '_events-list'}
|
|
data-maximum={attributes.eventsCount}
|
|
data-group-name={attributes.groupName}
|
|
{...blockProps}
|
|
>
|
|
<div style={{ display: 'none' }}>
|
|
{__('The events could not be loaded!', '<wordpress-name>')}
|
|
</div>
|
|
<div style={{ display: 'none' }}>
|
|
{__('The group could not be found!', '<wordpress-name>')}
|
|
</div>
|
|
<ul>
|
|
<li>{__('Loading...', '<wordpress-name>')}</li>
|
|
</ul>
|
|
</div>
|
|
)
|
|
}
|