Files

22 lines
632 B
TypeScript
Raw Permalink Normal View History

2026-10-05 18:10:18 -04:00
import type React from 'react';
import type { LucideIcon } from 'lucide-react';
2026-10-12 09:04:03 -04:00
import Card from '@/components/elements/Card';
interface Props {
2026-10-05 18:10:18 -04:00
icon?: LucideIcon;
title: string | React.ReactNode;
actions?: React.ReactNode;
className?: string;
2026-10-05 18:10:18 -04:00
contentClassName?: string;
children: React.ReactNode;
}
2026-10-12 09:04:03 -04:00
/** A `Card` with a header. */
const TitledGreyBox = ({ icon, title, actions, children, className, contentClassName }: Props) => (
<Card title={title} icon={icon} actions={actions} className={className} bodyClassName={contentClassName}>
2026-10-12 09:04:03 -04:00
{children}
</Card>
);
2020-02-08 15:23:08 -08:00
2026-10-05 18:10:18 -04:00
export default TitledGreyBox;