"use client"; import Grid from "@mui/material/Grid2"; import React from "react"; import { useTranslation } from "react-i18next"; import NumericKey from "@molecules/NumericKey"; interface NumericPadProps { onKeyClick: (key: string) => void; } const NumericPad: React.FC = ({ onKeyClick }) => { const { t } = useTranslation(); return ( onKeyClick("cancel")} className="h-12 w-full bg-danger-light text-white hover:bg-danger-dark" /> onKeyClick("clear")} className="h-12 bg-secondary-light text-black" /> {[...Array(10).keys()].map((i) => ( onKeyClick(i.toString())} className="h-16 bg-primary-500 text-white hover:bg-primary-600" /> ))} onKeyClick(".")} className="h-16 bg-primary-500 text-white hover:bg-primary-600" /> onKeyClick("enter")} className="h-12 w-full bg-success-light text-white hover:bg-success-dark" /> ); }; export default NumericPad;