12 lines
190 B
JavaScript
12 lines
190 B
JavaScript
|
import {proxy} from "valtio";
|
||
|
|
||
|
const store = proxy({
|
||
|
internet: true
|
||
|
})
|
||
|
|
||
|
export const setInternetConnection = ({connection}) => {
|
||
|
store.internet = connection
|
||
|
}
|
||
|
|
||
|
|
||
|
export default store;
|