import { type Component, For, Show } from "solid-js"; import type { CommanderEntry } from "./types"; import { getResultClass } from "./hooks"; export interface CommanderEntriesProps { entries: () => CommanderEntry[]; } export const CommanderEntries: Component = (props) => { return (
0} fallback={
暂无命令执行记录
} > {(entry) => (
{entry.command} {entry.timestamp.toLocaleTimeString()}
{entry.result.message}
)}
); };