mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
20 lines
493 B
TypeScript
20 lines
493 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
interface SidebarCardProps {
|
|
title: string;
|
|
children: ReactNode;
|
|
}
|
|
|
|
const SidebarCard = ({ title, children }: SidebarCardProps) => (
|
|
<div className="card bg-base-100 shadow">
|
|
<div className="card-body gap-3 p-6">
|
|
<p className="text-xs font-bold uppercase tracking-widest text-base-content/70 m-0">
|
|
{title}
|
|
</p>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
export default SidebarCard;
|