"use client"; import { Meter as MeterComponent } from "@pythnetwork/component-library/unstyled/Meter"; import type { ComponentProps, ReactNode } from "react"; import styles from "./index.module.scss"; type OwnProps = { label: string; startLabel?: ReactNode | undefined; endLabel?: ReactNode | undefined; }; type Props = Omit, keyof OwnProps> & OwnProps; export const Meter = ({ label, startLabel, endLabel, ...props }: Props) => ( {({ percentage }) => (
{(startLabel !== undefined || endLabel !== undefined) && (
{startLabel ??
} {endLabel ??
}
)}
)} );