import React from 'react'; import PropTypes from 'prop-types'; import './PowerLevelSelector.scss'; import IconButton from '../../atoms/button/IconButton'; import { MenuHeader, MenuItem } from '../../atoms/context-menu/ContextMenu'; import CheckIC from '../../../../public/res/ic/outlined/check.svg'; function PowerLevelSelector({ value, max, onSelect, }) { const handleSubmit = (e) => { const powerLevel = e.target.elements['power-level']?.value; if (!powerLevel) return; onSelect(Number(powerLevel)); }; return (