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

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

	return cards;
}
