import React from "react"; import Box from "@ui/Box"; import Text from "@ui/Text"; import dayjs from "dayjs"; import { InferResponseType } from "hono/client"; import api from "@/lib/api"; type Props = { data: InferResponseType; }; const Summary = ({ data }: Props) => { return ( {dayjs(data?.date).format("HH:mm")} {dayjs(data?.date).format("dddd, DD MMM YYYY")} {`Uptime: ${data?.uptime || "-"}`} ); }; export default Summary;