import { IBlock , IBlockData } from '@core/typings' ; import { BasicType } from '@core/constants' ; import { createBlock } from '@core/utils/createBlock' ; import { merge } from 'lodash' ; export type ISpacer = IBlockData < { 'container-background-color' ? : string ; height ? : string ; padding ? : string ; } > ; export const Spacer = createBlock ( { name : 'Spacer' , type : BasicType . SPACER , create : ( payload ) => { const defaultData = { type : BasicType . SPACER , data : { value : { } , } , attributes : { height : '20px' , } , children : [ ] , } ; return merge ( defaultData , payload ) ; } , validParentType : [ BasicType . COLUMN , BasicType . HERO ] , } ) ;