/* * Copyright (c) 2021 The ZMK Contributors * * SPDX-License-Identifier: MIT */ import React from "react"; import PropTypes from "prop-types"; function CustomBoardForm({ bindPsuType, bindOutputV, bindEfficiency, bindQuiescentMicroA, bindOtherQuiescentMicroA, }) { return (

Custom Board

{parseFloat(bindOutputV.value).toFixed(1)}V
{bindPsuType.value === "SWITCHING" && (
{Math.round(bindEfficiency.value * 100)}%
)}
µA
µA
); } CustomBoardForm.propTypes = { bindPsuType: PropTypes.Object, bindOutputV: PropTypes.Object, bindEfficiency: PropTypes.Object, bindQuiescentMicroA: PropTypes.Object, bindOtherQuiescentMicroA: PropTypes.Object, }; export default CustomBoardForm;