import { FiHardDrive } from "react-icons/fi"; import { useTranslation } from "next-i18next"; import UsageBar from "../resources/usage-bar"; export default function Node({ data, expanded, labels }) { const { t } = useTranslation(); return ( <>
{t("common.bytes", { value: data.node.available })}
{t("resources.free")}
{expanded && (
{t("common.bytes", { value: data.node.maximum })}
{t("resources.total")}
)}
{labels && (
{data.node.id}
)} ); }