import { useMemo } from "react";
import { SessionStorage } from "../services/session/sessionStorage.js";
export function useSessions(dataDir, limit = 10) {
    return useMemo(() => SessionStorage.list(dataDir, limit), [dataDir, limit]);
}
