<script setup lang="ts">
import ToggleSwitch from 'primevue/toggleswitch';
import FileEditor from '../FileEditor.vue';
import OptionCategory from '../OptionCategory.vue';
import OptionRow from '../OptionRow.vue';
import { usePrfStore } from '../../stores';
import { useI18n } from 'vue-i18n';

const { t } = useI18n();

const prf = usePrfStore();
</script>

<template>
    <OptionCategory :title="t('cfg.misc.title')">
        <OptionRow
            :title="t('cfg.misc.intel')"
            :dangerous-tooltip="t('cfg.misc.intelTooltip')"
        >
            <ToggleSwitch v-model="prf.current!.data.sgt.intel" />
        </OptionRow>
        <OptionRow
            :title="t('cfg.misc.other')"
            :tooltip="t('cfg.misc.otherTooltip')"
        >
            <!-- <Button icon="pi pi-refresh" size="small" /> -->
            <FileEditor filename="segatools-base.ini" />
        </OptionRow>
    </OptionCategory>
</template>
