@coinmeca/ui
Version:
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
16 lines • 758 B
JSX
"use client";
import { BottomSheet } from "../../../containers";
import { Numberpad as NumberPad } from "../../../parts";
export default function Numberpad(props) {
const width = 64;
const min = (typeof props?.height === "object" && props?.height?.min) || 40;
const max = (typeof props?.height === "object" && props?.height?.max) || 64;
const height = {
min: (typeof props?.height === "object" ? props?.height?.min : props?.height) || min,
max: (typeof props?.height === "object" ? props?.height?.min : props?.height) || max,
};
return (<BottomSheet {...props} active={props?.active} height={height}>
<NumberPad width={width} {...props}/>
</BottomSheet>);
}
//# sourceMappingURL=Numberpad.jsx.map