import { Zap } from 'lucide-react';
import { useTasksSettings } from '../contexts/TasksSettingsContext';
import { useTranslation } from 'react-i18next';
function TasksSettings() {
const { t } = useTranslation('settings');
const {
tasksEnabled,
setTasksEnabled,
isTaskMasterInstalled,
isCheckingInstallation
} = useTasksSettings();
return (
{/* Installation Status Check */}
{isCheckingInstallation ? (
) : (
<>
{/* TaskMaster Not Installed Warning */}
{!isTaskMasterInstalled && (
{t('tasks.notInstalled.title')}
{t('tasks.notInstalled.description')}
{t('tasks.notInstalled.installCommand')}
{t('tasks.notInstalled.afterInstallation')}
- {t('tasks.notInstalled.steps.restart')}
- {t('tasks.notInstalled.steps.autoAvailable')}
- {t('tasks.notInstalled.steps.initCommand')}
)}
{/* TaskMaster Settings */}
{isTaskMasterInstalled && (
{t('tasks.settings.enableLabel')}
{t('tasks.settings.enableDescription')}
)}
>
)}
);
}
export default TasksSettings;