import React from 'react'; /* !- Types */ export interface PropTypes { percent: number, ringColor?: string, color?: string, caption?: string, strokeWidth?: number, className?: string, } /** * Donut type chart */ const Donut: React.FC = ( { percent, ringColor = '#EBEBEB', color = '#00ffff', caption = '', strokeWidth = 3.5, className = '', }) => { const pulse = `@keyframes pulse { 0% { stroke-dasharray: 0, 100; } 100% { stroke-dasharray: ${percent}, ${100-percent}; } }`; const animation = 'pulse 1.2s ease-in-out'; return (