import { ReactNode, ComponentPropsWithoutRef } from "react"; interface CardProps extends ComponentPropsWithoutRef<"section"> { title: string; children: ReactNode; hasLeftBorder?: boolean; } export default function Card({ title, hasLeftBorder = false, children, className = "", ...props }: CardProps) { return (

{title}

{/* border-l-2 fügt den Strich links ein, pl-4 macht Platz zum Inhalt */}
{children}
); }