| 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; | |
| } | |
| 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; | |
| } | |