2024-06-15 01:34:54 +00:00
|
|
|
import { ComplementaryArea } from '@wordpress/interface';
|
2024-06-14 18:36:37 +00:00
|
|
|
import { Panel } from '@wordpress/components';
|
|
|
|
import { BlockInspector } from '@wordpress/block-editor';
|
2024-06-15 01:34:15 +00:00
|
|
|
import { drawerRight } from '@wordpress/icons';
|
2024-06-14 18:36:37 +00:00
|
|
|
|
2024-06-15 00:01:22 +00:00
|
|
|
import { scope } from './constants';
|
|
|
|
|
2024-06-15 22:40:52 +00:00
|
|
|
export default function Sidebar() {
|
2024-06-14 18:36:37 +00:00
|
|
|
return (
|
|
|
|
<ComplementaryArea
|
2024-06-15 00:01:22 +00:00
|
|
|
scope={ scope }
|
2024-06-15 01:34:54 +00:00
|
|
|
identifier="tipus/block"
|
2024-06-15 00:01:22 +00:00
|
|
|
isActiveByDefault={ true }
|
2024-06-15 01:34:15 +00:00
|
|
|
icon={ drawerRight }
|
2024-06-14 18:36:37 +00:00
|
|
|
>
|
|
|
|
<Panel>
|
|
|
|
<BlockInspector />
|
|
|
|
</Panel>
|
|
|
|
</ComplementaryArea>
|
|
|
|
);
|
|
|
|
}
|