import React from 'react'; import s from './DefaultBtn.module.scss'; import CloseSvg from './../../assets/CloseSvg'; import { useStoreDispatch } from '../../App'; import { SetActiveItem } from '../../store/actions/Settings'; import PenSvg from './../../assets/PenSvg'; export const DefaultBtn = ({ ...props }) => { const { attribute, toDefault } = props; const value = attribute.type === 'String' ? attribute.defaultValue : attribute.defaultValue.assetId; return (