import { Button, Group, rem, Stack, Text, TextInput } from '@mantine/core'; import { ExternalLink, Folder, FolderOpen, Monitor } from 'lucide-react'; import { useEffect, useState } from 'react'; export const TroubleshootingTab = () => { const [installDir, setInstallDir] = useState(''); useEffect(() => { const loadCurrentInstallDir = async () => { const currentDir = await window.electronAPI.kobold.getCurrentInstallDir(); if (currentDir) { setInstallDir(currentDir); } }; void loadCurrentInstallDir(); }, []); const handleSelectInstallDir = async () => { const selectedDir = await window.electronAPI.kobold.selectInstallDirectory(); if (selectedDir) { setInstallDir(selectedDir); } }; const handleOpenInstallDir = async () => { if (installDir) { await window.electronAPI.app.openPath(installDir); } }; return (
Installation Directory Choose where application files will be downloaded and stored } />
Diagnostics Diagnostic tools and configuration access
); };