| 14 | import { ServerStatus } from "./CaptureSetup"; |
| 15 | |
| 16 | export default function Regular() { |
| 17 | const serverState = useAppSelector((state) => state.modes.regular); |
| 18 | const backendState = useAppSelector((state) => state.backendState.servers); |
| 19 | |
| 20 | const servers = serverState.map((server) => { |
| 21 | return ( |
| 22 | <RegularRow |
| 23 | key={server.ui_id} |
| 24 | server={server} |
| 25 | backendState={backendState[getSpec(server)]} |
| 26 | /> |
| 27 | ); |
| 28 | }); |
| 29 | |
| 30 | return ( |
| 31 | <div> |
| 32 | <h4 className="mode-title">Explicit HTTP(S) Proxy</h4> |
| 33 | <p className="mode-description"> |
| 34 | You manually configure your client application or device to use |
| 35 | an HTTP(S) proxy. |
| 36 | </p> |
| 37 | {servers} |
| 38 | </div> |
| 39 | ); |
| 40 | } |
| 41 | |
| 42 | function RegularRow({ |
| 43 | server, |