UNPKG

@roochnetwork/rooch-sdk-kit

Version:
14 lines (11 loc) 320 B
// Copyright (c) RoochNetwork // SPDX-License-Identifier: Apache-2.0 import { useSessionStore } from './useSessionsStore.js' /** * Retrieves the all session account */ export function useSessions() { return useSessionStore((state) => state.sessions.sort((a, b) => b.getCreateTime() - a.getCreateTime()), ) }