@eightshift/frontend-libs
Version:
A collection of useful frontend utility modules. powered by Eightshift
20 lines (18 loc) • 569 B
JavaScript
import React from 'react';
import { __ } from '@wordpress/i18n';
import { PanelBody } from '@wordpress/components';
import { props } from '@eightshift/frontend-libs/scripts';
import { ImageOptions } from '../../../components/image/components/image-options';
export const CarouselItemOptions = ({ attributes, setAttributes }) => {
return (
<PanelBody title={__('Carousel item', '%g_textdomain%')}>
<ImageOptions
{...props('image', attributes, { setAttributes })}
noLabel
noUseToggle
noExpandButton
noFullSizeToggle
/>
</PanelBody>
);
};