mirror of
https://gh.wpcy.net/https://github.com/elementor/hello-theme.git
synced 2026-04-28 12:22:20 +08:00
* Fix: Theme Home icons [TMZ-568] * Tweak: AI site-planner link [TMZ-578] * Fix: Theme home - icons & description text color
27 lines
990 B
JavaScript
27 lines
990 B
JavaScript
import { BaseAdminPaper } from './base-admin-paper';
|
|
import Typography from '@elementor/ui/Typography';
|
|
import { __ } from '@wordpress/i18n';
|
|
import Stack from '@elementor/ui/Stack';
|
|
import { ColumnLinkGroup } from '../linkGroup/column-link-group';
|
|
import { useAdminContext } from '../../hooks/use-admin-context';
|
|
|
|
export const QuickLinks = () => {
|
|
const { adminSettings: { quickLinks = [] } = {} } = useAdminContext();
|
|
|
|
return (
|
|
<BaseAdminPaper>
|
|
<Typography variant="h6" sx={ { color: 'text.primary' } }>{ __( 'Quick Links', 'hello-elementor' ) }</Typography>
|
|
<Typography variant="body2" sx={ { mb: 3, color: 'text.secondary' } }>
|
|
{ __( 'These quick actions will get your site airborne in a flash.', 'hello-elementor' ) }
|
|
</Typography>
|
|
<Stack direction="row" gap={ 9 }>
|
|
{ Object.keys( quickLinks ).map( ( key ) => {
|
|
return (
|
|
<ColumnLinkGroup key={ key } links={ [ { ...quickLinks[ key ] } ] } />
|
|
);
|
|
} ) }
|
|
|
|
</Stack>
|
|
</BaseAdminPaper>
|
|
);
|
|
};
|