import { PanelBody, TabPanel, TextControl } from "@wordpress/components"; import { InspectorControls } from '@wordpress/block-editor'; import objAttributes from './attributes'; import { __ } from "@wordpress/i18n"; import { typoPrefix_author, typoPrefix_updated_time } from "./typographyPrefixConstants"; import ColorControl from "../../../util/color-control"; import TypographyDropdown from "../../../util/typography-control-v2"; import ResponsiveRangeController from "../../../util/responsive-range-control"; import ResponsiveDimensionsControl from "../../../util/dimensions-control-v2"; import BorderShadowControl from "../../../util/border-shadow-control"; import BackgroundControl from "../../../util/background-control"; import { AUTHOR_BOX_BACKGROUND, AUTHOR_BOX_BORDER, AUTHOR_BOX_SIZE, AUTHOR_BOX_WRAPPER_MARGIN, AUTHOR_BOX_WRAPPER_PADDING } from "./constants"; const Inspector = ({attributes, setAttributes}) => { const { resOption, docAuthorColor, updatedTimeColor } = attributes; const resRequiredProps = { setAttributes, resOption, attributes, objAttributes }; return (
{ (tab) => { return (
{tab.name === "styles" && ( <> setAttributes({ docAuthorColor })} /> setAttributes({ updatedTimeColor })} /> )}
) } }
); } export default Inspector;