import Loading from "components/util/Loading"; import React, { CSSProperties } from "react"; import { UnsuccessfulAPIResponse } from "tachi-common"; export default function LoadingWrapper({ dataset, isLoading, error, children, style, }: { dataset: unknown | null | undefined; isLoading: boolean; error: UnsuccessfulAPIResponse | null; children: JSX.Element | JSX.Element[]; style?: CSSProperties; }) { if (error) { return