import React, { ReactNode } from "react"; import { GroupCircle } from "../Circle.js"; export interface IucnLevelCircleProps { children: ReactNode; level: string; } const groupColorMap = { full: "#BEE4BE", high: "#FFE1A3", low: "#F7A6B4", }; export const IucnLevelCircle: React.FunctionComponent = ({ level, children, }) => { return ( {children} ); }; export interface IucnLevelCircleRowProps { level: string; circleText?: string | number; rowText?: string | ReactNode; } export const IucnLevelCircleRow: React.FunctionComponent< IucnLevelCircleRowProps > = ({ level, circleText, rowText }) => { return (
{circleText || " "} {rowText || ""}
); };