"use client"; import { Meter } from "@pythnetwork/component-library/unstyled/Meter"; import clsx from "clsx"; import dynamic from "next/dynamic"; import { type ComponentProps, type CSSProperties, Suspense } from "react"; import { PolarAngleAxis, RadialBar } from "recharts"; import styles from "./index.module.scss"; export { Label } from "@pythnetwork/component-library/unstyled/Label"; const RadialBarChart = dynamic( () => import("recharts").then((recharts) => recharts.RadialBarChart), { ssr: false, }, ); type OwnProps = { height: number; width: number; }; type Props = Omit, keyof OwnProps> & OwnProps; export const SemicircleMeter = ({ width, height, className, children, ...props }: Props) => ( {(...args) => ( <>
{typeof children === "function" ? children(...args) : children}
)}
);