1from typing import Any
2
3from .base import Card
4
5
6class KeyValueCard(Card):
7 template_name = "admin/cards/key_value.html"
8
9 items: dict[str, Any] = {}
10
11 def get_template_context(self) -> dict[str, Any]:
12 context = super().get_template_context()
13 context["items"] = self.get_items()
14 return context
15
16 def get_items(self) -> dict[str, Any]:
17 return self.items.copy()