import { styled } from '@mui/styles'; import { StatsTitle, StatsValue, Percentage } from './Summary'; import { GridStats } from '../api/bbgo'; const StatsSection = styled('div')(() => ({ display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: '10px', })); export default function Stats({ stats, gridProfitsPercentage, gridAprPercentage, }: { stats: GridStats; gridProfitsPercentage: number; gridAprPercentage: number; }) { return (
Grid Profits {stats.gridProfits} {gridProfitsPercentage}%
Floating PNL {stats.floatingPNL}
Grid APR {gridAprPercentage}%
Current Price
{stats.currentPrice}
Price Range
{stats.lowestPrice}~{stats.highestPrice}
); }