next-enterprise/package/components/molecules/NumericKey.tsx

21 lines
515 B
TypeScript
Raw Normal View History

2024-09-19 19:22:43 -05:00
"use client"
import Grid2 from "@mui/material/Grid2"
import React from "react"
import Button from "@atoms/Button"
interface NumericKeyProps {
label: string | number
onClick: () => void
className?: string
}
const NumericKey: React.FC<NumericKeyProps> = ({ label, onClick, className }) => {
return (
<Grid2 container justifyContent="center" component="div">
<Button label={label.toString()} onClick={onClick} className={`h-16 w-full ${className}`} />
</Grid2>
)
}
export default NumericKey