mirror of
https://github.com/morten-olsen/catpic.delivery.git
synced 2026-02-08 01:46:26 +01:00
12 lines
284 B
TypeScript
12 lines
284 B
TypeScript
import { useContext } from 'react';
|
|
import ConnectionContext, { States } from '../contexts/ConnectionContext';
|
|
|
|
const useConnection = () => {
|
|
const context = useContext(ConnectionContext);
|
|
return context;
|
|
};
|
|
|
|
export const ConnectionStates = States;
|
|
|
|
export default useConnection;
|