Ref: modification components in selfcheckout
This commit is contained in:
parent
251a6a2a6a
commit
ab7a02bcca
40 changed files with 1315 additions and 557 deletions
20
package/components/molecules/CustomCard.tsx
Normal file
20
package/components/molecules/CustomCard.tsx
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue