import type { Client } from '#shared/types' import { createGlobalState, useLocalStorage } from '@vueuse/core' export const useGlobalState = createGlobalState(() => { const username = useLocalStorage('username', '') const clients = shallowRef([]) function reset() { clients.value = [] } return { username, clients, reset, } })