import React, { FunctionComponent } from 'react'; import { ColorTokens } from '../../foundation/Colors'; import { Container, Hole } from './Donut.styled'; export type DonutProps = { colorToken: ColorTokens; holeColorToken?: ColorTokens; percentage: number; }; export const Donut: FunctionComponent = ({ holeColorToken, colorToken, percentage, }) => { const computedPercentage = Math.min(Math.max(percentage, 0), 100); const computedHoleColorToken = holeColorToken || 'black700'; return ( ); };