next-enterprise/package/components/molecules/CustomCard.tsx
2024-09-30 15:17:38 -05:00

20 lines
No EOL
466 B
TypeScript

"use client"
import { CardContent, CardHeader, Card as MUICard } from "@mui/material"
import React from "react"
interface CardProps {
title?: string
children: React.ReactNode
className?: string
}
const CustomCard: React.FC<CardProps> = ({ title, children, className }) => {
return (
<MUICard className={className}>
{title && <CardHeader title={title} />}
<CardContent>{children}</CardContent>
</MUICard>
)
}
export default CustomCard