import { Box } from "@mantine/core" import type { MetricTimer } from "app/types" interface MetricTimerProps { timer: MetricTimer } export function Timer(props: MetricTimerProps) { return ( Mean: {props.timer.mean_rate.toFixed(2)} Last minute: {props.timer.m1_rate.toFixed(2)} Last 5 minutes: {props.timer.m5_rate.toFixed(2)} Last 15 minutes: {props.timer.m15_rate.toFixed(2)} Units: {props.timer.rate_units} Total: {props.timer.count} ) }