UNPKG

@eightshift/frontend-libs

Version:

A collection of useful frontend utility modules. powered by Eightshift

20 lines (18 loc) 625 B
import React from 'react'; import { __ } from '@wordpress/i18n'; import { PanelBody } from '@wordpress/components'; import { props, getOptions } from '@eightshift/frontend-libs/scripts'; import { CardOptions as CardOptionsComponent } from '../../../components/card/components/card-options'; import manifest from './../manifest.json'; export const CardOptions = ({ attributes, setAttributes }) => { return ( <PanelBody title={__('Card', '%g_textdomain%')}> <CardOptionsComponent {...props('card', attributes, { setAttributes, options: getOptions(attributes, manifest), })} /> </PanelBody> ); };