* Re-engineer UI in TypeScript * Switch to named imports where possible * Restructure file system layout * Update depencencies * Update README.md * Change explicit colors for better support for dark theme
14 lines
391 B
TypeScript
14 lines
391 B
TypeScript
import React from 'react';
|
|
import { WiFiNetwork } from './types';
|
|
|
|
export interface WiFiConnectionContext {
|
|
selectedNetwork?: WiFiNetwork;
|
|
selectNetwork: (network: WiFiNetwork) => void;
|
|
deselectNetwork: () => void;
|
|
}
|
|
|
|
const WiFiConnectionContextDefaultValue = {} as WiFiConnectionContext
|
|
export const WiFiConnectionContext = React.createContext(
|
|
WiFiConnectionContextDefaultValue
|
|
);
|