Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Image from '../../edits/image';
const actions = props => [
{
type: 'image-src',
icon: 'picture-o',
tooltip: 'Bild und Bildausschnitt auswählen',
toggle: () => {
const { setData } = props;
setData({ showMedia: true });
},
active: false,
},
];
@useGenericBlock({
label: 'Bild',
props: ['image', 'showMedia', 'full'],
category: 'Media',
editable: false,
resize: {
bootstrap: true,
coverOnResize: true,
resizeY: false,
},
align: true,
actions,
})
export default class ImageBlock extends Component {
static propTypes = {
children: PropTypes.node,
style: PropTypes.object,
import Image from '../../edits/image';
const actions = props => [
{
type: 'image-src',
icon: 'picture-o',
tooltip: 'Bild und Bildausschnitt auswählen',
toggle: () => {
const { setData } = props;
setData({ showMedia: true });
},
active: false,
},
];
@useGenericBlock({
label: 'Bild',
props: ['image', 'showMedia', 'full'],
category: 'Media',
editable: false,
resize: {
bootstrap: true,
coverOnResize: true,
resizeY: false,
},
align: true,
actions,
})
export default class ImageBlock extends Component {
static propTypes = {
children: PropTypes.node,
style: PropTypes.object,