import { Database } from 'phosphor-react'; import { getDebugState, useBridgeQuery, useDebugState } from '@sd/client'; import { Card, Input, Switch, tw } from '@sd/ui'; import { usePlatform } from '~/util/Platform'; import { Heading } from '../Layout'; import Setting from '../Setting'; const NodePill = tw.div`px-1.5 py-[2px] rounded text-xs font-medium bg-app-selected`; const NodeSettingLabel = tw.div`mb-1 text-xs font-medium`; export const Component = () => { const node = useBridgeQuery(['nodeState']); const platform = usePlatform(); const debugState = useDebugState(); return ( <>
Connected Node
0 Peers Running

Node Name { /* TODO */ }} disabled />
Node Port { /* TODO */ }} disabled />
Run daemon when app closed
{ if (node.data && platform?.openLink) { platform.openLink(node.data.data_path); } }} className="text-sm font-medium text-ink-faint" > Data Folder {node.data?.data_path}
{isDev && ( (getDebugState().enabled = !debugState.enabled)} /> )} ); };