import { __ } from "@wordpress/i18n";
import Inspector from "./inspector";
import { useBlockProps } from "@wordpress/block-editor";
import ArchiveIcon from "./archiveIcon";
import { useStyleSheets, useDuplicateBlockIdFix, usePreviewDeviceType } from "../../../hooks";
import cssProperties from "./cssProperties";
const BLOCK_PREFIX = "archive-header";
const Edit = ({ attributes, setAttributes, isSelected, clientId }) => {
const { blockId, titleTag } = attributes;
const blockProps = useBlockProps({
className: `eb-guten-block-main-parent-wrapper`,
});
const { styleTag } = useStyleSheets({
properties: cssProperties({ blockId }),
setAttributes,
attributes,
});
usePreviewDeviceType(setAttributes);
useDuplicateBlockIdFix(BLOCK_PREFIX, blockId, clientId, setAttributes);
let TitleTag = titleTag;
return (
<>
{isSelected && (