forked from lightningpixel/modly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplicationSection.tsx
More file actions
25 lines (23 loc) · 864 Bytes
/
Copy pathApplicationSection.tsx
File metadata and controls
25 lines (23 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { useAppStore } from '@shared/stores/appStore'
import { Section, Card, Row, Toggle } from '@shared/ui'
export function ApplicationSection(): JSX.Element {
const { showRamIndicator, setShowRamIndicator, showVramIndicator, setShowVramIndicator } = useAppStore()
return (
<Section title="Application" subtitle="General application settings.">
<Card title="Interface">
<Row
label="RAM indicator"
description="Show live memory usage in the top bar."
>
<Toggle value={showRamIndicator} onChange={setShowRamIndicator} />
</Row>
<Row
label="VRAM indicator"
description="Show live GPU memory usage in the top bar (NVIDIA only)."
>
<Toggle value={showVramIndicator} onChange={setShowVramIndicator} />
</Row>
</Card>
</Section>
)
}