import Link from "next/link"; export type Farbton = "info" | "success" | "warning" | "danger" | "neutral" | "primary"; export const FARB_KLASSE: Record = { info: "pl-bg-info", success: "pl-bg-success", warning: "pl-bg-warning", danger: "pl-bg-danger", neutral: "pl-bg-neutral", primary: "pl-bg-primary", }; interface SmallBoxProps { wert: number | string; text: string; zusatz?: string; icon: string; farbe: Farbton; href: string; linkText?: string; } export function SmallBox({ wert, text, zusatz, icon, farbe, href, linkText = "Mehr Infos" }: SmallBoxProps) { return (

{wert}

{text} {zusatz ? {zusatz} : null}