mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-08 14:58:12 +03:00
15 lines
423 B
TypeScript
15 lines
423 B
TypeScript
import { Game, GetGamePTConfig, Playtype } from "tachi-common";
|
|
import useLUGPTSettings from "./useLUGPTSettings";
|
|
|
|
export function useBucket(game: Game, playtype: Playtype) {
|
|
const { settings } = useLUGPTSettings();
|
|
|
|
if (!settings?.preferences.preferredDefaultEnum) {
|
|
const gptConfig = GetGamePTConfig(game, playtype);
|
|
|
|
return gptConfig.preferredDefaultEnum;
|
|
}
|
|
|
|
return settings.preferences.preferredDefaultEnum;
|
|
}
|