# (c) cavaliba.com - home - prototypes.py

PROTOTYPE_REGISTRY = [
    {
        "slug": "kitchen-sink",
        "title": "Kitchen Sink",
        "description": "Typography, buttons, badges, alerts, cards, forms, table.",
        "template": "app_home/prototypes/kitchen_sink.html",
    },
    {
        "slug": "ipam-subnet-calculator",
        "title": "IPAM Subnet Calculator",
        "description": "IPv4 subnet calculator: enter an IP/CIDR, view network details, and split into sub-subnets.",
        "template": "app_home/prototypes/ipam_subnet_calculator.html",
    },
    {
        "slug": "dashboard-mockup",
        "title": "Home Dashboard (DASHBOARD_CONTENT)",
        "description": "Home dashboard: sections of schema/app/link cards driven by DASHBOARD_CONTENT.",
        "template": "app_home/prototypes/dashboard.html",
    },
]


def get_prototype(slug):
    """Return the registry entry for slug, or None if unknown."""

    for entry in PROTOTYPE_REGISTRY:
        if entry["slug"] == slug:
            return entry

    return None
