2
0
Fork 0
mirror of https://github.com/elementor/hello-theme.git synced 2026-03-03 12:56:14 +08:00
hello-theme/modules/admin-home/assets/js/components/paper/site-parts.js

31 lines
936 B
JavaScript

import { BaseAdminPaper } from './base-admin-paper';
import Stack from '@elementor/ui/Stack';
import { ColumnLinkGroup } from '../linkGroup/column-link-group';
import { __ } from '@wordpress/i18n';
import { useAdminContext } from '../../hooks/use-admin-context';
export const SiteParts = () => {
const { adminSettings: { siteParts: { siteParts = [], sitePages = [], general = [] } = {} } = {} } = useAdminContext();
return (
<BaseAdminPaper>
<Stack direction="row" gap={ 12 }>
<ColumnLinkGroup
title={ __( 'Site Parts', 'hello-elementor' ) }
links={ siteParts }
sx={ { minWidth: '25%' } }
/>
<ColumnLinkGroup
title={ __( 'Recent Pages', 'hello-elementor' ) }
links={ sitePages }
sx={ { minWidth: '25%' } }
/>
<ColumnLinkGroup
title={ __( 'General', 'hello-elementor' ) }
links={ general }
sx={ { minWidth: '25%' } }
/>
</Stack>
</BaseAdminPaper>
);
};