import { __ } from '@wordpress/i18n';
import { useBlockProps, InspectorControls } from '@wordpress/block-editor';
import { Disabled, PanelBody } from '@wordpress/components';
import ServerSideRender from '@wordpress/server-side-render';
import { ToggleControlGroup } from './components/toggle-control-group';
import { RangeControls } from './components/range-controls';
import { PostDisplayControls } from './components/post-display-controls';
import { StyleControls } from './components/style-controls';
import { OtherAttributesControl } from './components/other-attributes-control';
export default function Edit({ attributes, setAttributes }) {
const {
heading,
daily,
show_excerpt,
show_author,
show_date,
disp_list_count,
other_attributes,
} = attributes;
const blockProps = useBlockProps();
const handleToggle = (attributeName) => () => {
setAttributes({ [attributeName]: !attributes[attributeName] });
};
const handleChange = (attributeName) => (newValue) => {
setAttributes({ [attributeName]: newValue });
};
return (
<>