Ref: modification components in selfcheckout

This commit is contained in:
Luis Felipe Cadavid 2024-09-30 15:17:38 -05:00
parent 251a6a2a6a
commit ab7a02bcca
40 changed files with 1315 additions and 557 deletions

View file

@ -0,0 +1,20 @@
"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