import classNames from 'classnames' import { ReactNode } from 'react' import Tooltip from './Tooltip' type Props = { tooltip: string | ReactNode strokeWidth?: number background?: string diameter?: number value: number label?: string } const Gauge = ({ background = '#15161A', diameter = 40, value = 0, label, tooltip }: Props) => { const percentage = value * 100 const percentageValue = percentage > 100 ? 100 : percentage < 0 ? 0 : percentage const semiCirclePercentage = Math.abs(percentageValue / 2 - 50) return (
{label && ( {label} )}
) } export default Gauge