File size: 254 Bytes
bc20498 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import { useStore } from '../store';
/**
* Hook for receiving the current connection.
*
* @public
* @returns current connection as a readable store
*/
export function useConnection() {
const { connection } = useStore();
return connection;
}
|