import { ClientCategory, t } from '@tempi/editor-site'; import { BLOCK_TYPES } from '@tempi/types/pb'; import { MenuProps } from 'antd'; const { flagTopBanner = false } = window?.config || {}; export const globalBlockCategories: ClientCategory[] = [ { name: t('Đầu trang'), key: BLOCK_TYPES.HEADER, }, { name: t('Chân trang'), key: BLOCK_TYPES.FOOTER, }, ]; if (flagTopBanner) { globalBlockCategories.unshift({ name: t('top_banner'), key: BLOCK_TYPES.TOP_BANNER, }); } export const elementBlockCategories: ClientCategory[] = [ { name: t('Đầu trang'), key: 'HEADER', }, ]; export enum MenuKeyPrefix { Tempi = 'tempi-', Teko = 'teko-', Global = 'global-', Element = 'element-', } export type MenuItem = Required['items'][number];