<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';

const prf = usePrfStore();
</script>

<template>
    <OptionCategory title="Misc">
        <OptionRow title="OpenSSL bug workaround for Intel ≥10th gen">
            <ToggleSwitch v-model="prf.current!.data.sgt.intel" />
        </OptionRow>
        <OptionRow
            title="More segatools options"
            tooltip="Advanced options not covered by STARTLINER"
        >
            <!-- <Button icon="pi pi-refresh" size="small" /> -->
            <FileEditor filename="segatools-base.ini" />
        </OptionRow>
    </OptionCategory>
</template>
