export function buildOverviewCards({
	explorerHref,
	searchHref,
	canManageUsers,
	disabledHint,
}) {
	const cards = [
		{
			key: "explorer",
			title: "Explorer",
			description: "Lieferscheine nach Datum durchsuchen (Jahr -> Monat -> Tag).",
			imageSrc: "/overview-cards/v2/explorer.webp",
			href: explorerHref || null,
			disabledHint: disabledHint || null,
		},
		{
			key: "search",
			title: "Suche",
			description: "Schnell finden mit Volltext, Zeitraum und Filtern.",
			imageSrc: "/overview-cards/v2/search.webp",
			href: searchHref || null,
			disabledHint: disabledHint || null,
		},
		{
			key: "profile",
			title: "Profil",
			description: "Passwort ändern und Support kontaktieren.",
			imageSrc: "/overview-cards/v2/profile.webp",
			href: "/profile",
			disabledHint: null,
		},
	];

	if (canManageUsers) {
		cards.push({
			key: "users",
			title: "Benutzerverwaltung",
			description: "Benutzer anlegen, bearbeiten und verwalten.",
			imageSrc: "/overview-cards/v2/users.webp",
			href: "/admin/users",
			disabledHint: null,
		});
	}

	return cards;
}
