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