import { UMB_USER_SECTION_ALIAS } from '../../user-section/manifests.js';
import type { ManifestSectionView } from '@umbraco-cms/backoffice/extension-registry';

const sectionsViews: Array<ManifestSectionView> = [
	{
		type: 'sectionView',
		alias: 'Umb.SectionView.UserGroups',
		name: 'User Groups Section View',
		loader: () => import('./user-groups-section-view.element.js'),
		weight: 100,
		meta: {
			label: 'User Groups',
			pathname: 'user-groups',
			icon: 'umb:users',
		},
		conditions: [
			{
				alias: 'Umb.Condition.SectionAlias',
				match: UMB_USER_SECTION_ALIAS,
			},
		],
	},
];

export const manifests = [...sectionsViews];
