import React from 'react';
// 1. Callout (Info, Warning, Error)
export function Callout({ children, type = 'info' }: { children: React.ReactNode, type?: 'info' | 'warning' | 'error' | 'success' }) {
const variants = {
info: "bg-blue-500/10 border-blue-500 text-blue-200",
warning: "bg-amber-500/10 border-amber-500 text-amber-200",
error: "bg-red-500/10 border-red-500 text-red-200",
success: "bg-emerald-500/10 border-emerald-500 text-emerald-200",
};
return (
{type === 'info' &&
}
{type === 'warning' &&
}
{children}
);
}
// 2. Card Grid (Für Übersichtsseiten)
export function Grid({ children }: { children: React.ReactNode }) {
return {children}
;
}
export function Card({ title, href, children }: { title: string, href: string, children: React.ReactNode }) {
return (
{title}
{children}
);
}
// 3. Steps (Für nummerierte Anleitungen)
export function Steps({ children }: { children: React.ReactNode }) {
return (
{children}
);
}
export function Step({ title, children }: { title: string, children: React.ReactNode }) {
return (
{/* Die Nummerierung macht CSS automatisch, siehe unten */}
{title}
{children}
);
}