import { useQuery } from "@tanstack/react-query"; import { getStorages } from "../utils/uxFncs"; import { Sheet, Table, Button } from "@mui/joy"; import { useTranslation } from "react-i18next"; import type { Storage } from "../misc/interfaces"; import { StorageRow } from "../components/StorageRow"; export const Storages = () => { const { t } = useTranslation(); const { data: storages, isLoading } = useQuery({ queryKey: ["storages"], queryFn: () => getStorages(), }); return ( {storages?.map((storage: Storage) => ( ))}
{t("name")} {t("description")} {t("created-at")} {t("updated-at")}
); };