2025-06-08 19:01:33 +07:00
|
|
|
import TableRowAssetIcon from '@revenge-mod/components/TableRowAssetIcon'
|
2025-06-09 23:35:23 +07:00
|
|
|
import { Setting } from '../constants'
|
2025-05-08 19:00:49 +07:00
|
|
|
import type { SettingsItem } from '@revenge-mod/discord/modules/settings'
|
2025-05-04 16:45:38 +07:00
|
|
|
|
|
|
|
|
// @ts-expect-error
|
|
|
|
|
const props = HermesInternal.getRuntimeProperties()
|
|
|
|
|
|
2025-05-04 20:31:20 +07:00
|
|
|
const HermesVersionSetting: SettingsItem = {
|
2025-06-09 23:35:23 +07:00
|
|
|
parent: Setting.Revenge,
|
2025-05-08 19:00:49 +07:00
|
|
|
IconComponent: () => <TableRowAssetIcon name="TranscriptOutlineIcon" />,
|
2025-05-04 16:45:38 +07:00
|
|
|
title: () => 'Hermes',
|
|
|
|
|
useDescription: () => `${props['Bytecode Version']} (${props.Build})`,
|
2025-05-05 19:13:00 +07:00
|
|
|
type: 'static',
|
2025-05-04 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default HermesVersionSetting
|