@eightshift/frontend-libs
Version:
A collection of useful frontend utility modules. powered by Eightshift
29 lines (25 loc) • 606 B
JavaScript
import React from 'react';
import { ServerSideRender, props } from '@eightshift/frontend-libs/scripts';
import { LoadMoreEditor } from './../../../components/load-more/components/load-more-editor';
export const FeaturedContentEditor = ({ attributes, setAttributes }) => {
const {
blockFullName,
} = attributes;
return (
<>
<ServerSideRender
block={blockFullName}
attributes={{
...attributes,
featuredContentServerSideRender: true,
wrapperUse: false,
}}
/>
<LoadMoreEditor
{...props('load-more', attributes, {
setAttributes,
})}
/>
</>
);
};