import { levels } from "@typed-assistant/logger/levels" import { getPrettyTimestamp } from "@typed-assistant/utils/getPrettyTimestamp" import { useState } from "react" import { AppSection } from "./AppSection" import { WSIndicator } from "./WSIndicator" import { useLogStore } from "./logStore" import { buttonStyle } from "./styles" export const Logs = ({ basePath }: { basePath: string }) => { const [dateTimeVisibility, setDateTimeVisibility] = useState< "hidden" | "timeOnly" | "visible" >("timeOnly") const { level, setLevel, logs, offset, setOffset, ws, filter, setFilter, limit } = useLogStore() const hasNextPage = limit ? logs.length >= limit : false return ( <> ( <>

Logs

View raw log.txt { setOffset(0) setFilter(e.target.value) }} />
{offset > 0 && ( )} {hasNextPage && ( )}
)} >
          
        
) }