import { TablePaginationConfig } from 'antd';

export const DEFAULT_NAME = 'Umi Max';

export const PAGINATION: TablePaginationConfig = {
	showSizeChanger: true,
	showQuickJumper: true,
	showTotal: (total: number) => `共 ${total} 条`,
	pageSizeOptions: ['10', '20', '50', '100'],
	defaultPageSize: 10,
	hideOnSinglePage: true,
};

export const PERMISSION = {
	PublicMaterialManageCreate: 'public-material-manage-create',
	PublicMaterialManageUpdate: 'public-material-manage-update',
	PublicMaterialManageDelete: 'public-material-manage-delete',
	PublicMaterialManageView: 'public-material-manage-view',
	PublicMaterialCategoryCreate: 'public-material-category-create',
	PublicMaterialCategoryUpdate: 'public-material-category-update',
	PublicMaterialCategoryDelete: 'public-material-category-delete',
	PublicMaterialCategoryView: 'public-material-category-view',
};
