-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Expand file tree
/
Copy pathscreen-root.js
More file actions
61 lines (55 loc) · 1.18 KB
/
screen-root.js
File metadata and controls
61 lines (55 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* WordPress dependencies
*/
import {
__experimentalItemGroup as ItemGroup,
__experimentalItem as Item,
__experimentalHStack as HStack,
FlexItem,
CardBody,
Card,
CardDivider,
} from '@wordpress/components';
import { isRTL, __ } from '@wordpress/i18n';
import { chevronLeft, chevronRight, Icon } from '@wordpress/icons';
/**
* Internal dependencies
*/
import StylesPreview from './preview';
import NavigationButton from './navigation-button';
import ContextMenu from './context-menu';
function ScreenRoot() {
return (
<Card size="small">
<CardBody>
<StylesPreview />
</CardBody>
<CardBody>
<ContextMenu />
</CardBody>
<CardDivider />
<CardBody>
<ItemGroup>
<Item>
{ __(
'Customize the appearance of specific blocks for the whole site.'
) }
</Item>
<NavigationButton path="/blocks">
<HStack justify="space-between">
<FlexItem>{ __( 'Blocks' ) }</FlexItem>
<FlexItem>
<Icon
icon={
isRTL() ? chevronLeft : chevronRight
}
/>
</FlexItem>
</HStack>
</NavigationButton>
</ItemGroup>
</CardBody>
</Card>
);
}
export default ScreenRoot;