import { useState, useEffect } from "react";
import PacmanLoader from "react-spinners/PacmanLoader";
import CodeBlock from "@/components/CodeBlock";
import HistoryRow from "@/components/history/HistoryRow";
import { ShellHistory, inspectCommandHistory } from "@/state/models";
function renderLoading() {
return (
);
}
export default function HistoryInspect({ history }: any) {
let [other, setOther] = useState([]);
useEffect(() => {
(async () => {
let inspect = await inspectCommandHistory(history);
setOther(inspect.other);
})();
}, []);
if (other.length == 0) return renderLoading();
return (
{other.map((i: any) => {
return ;
})}
);
}