Ref: modification components in selfcheckout
This commit is contained in:
parent
251a6a2a6a
commit
ab7a02bcca
40 changed files with 1315 additions and 557 deletions
15
package/components/atoms/Icon.tsx
Normal file
15
package/components/atoms/Icon.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use client"
|
||||
import * as MUIIcons from "@mui/icons-material"
|
||||
import React from "react"
|
||||
|
||||
interface IconProps {
|
||||
name: keyof typeof MUIIcons
|
||||
className?: string
|
||||
}
|
||||
|
||||
const Icon: React.FC<IconProps> = ({ name, className }) => {
|
||||
const IconComponent = MUIIcons[name]
|
||||
return <IconComponent className={className} />
|
||||
}
|
||||
|
||||
export default Icon
|
||||
Loading…
Add table
Add a link
Reference in a new issue