feat(sound): 우하단 빠른 볼륨/3프리셋 및 더미 저장 복원 적용

This commit is contained in:
2026-03-04 15:20:56 +09:00
parent 8f64637b6f
commit 27a64d9d81
7 changed files with 368 additions and 112 deletions

View File

@@ -11,10 +11,8 @@ const isQuickAvailablePreset = (preset: SoundPreset | undefined): preset is Soun
return !PRO_LOCKED_SOUND_IDS.includes(preset.id);
};
export const getQuickSoundPresets = (presets: SoundPreset[], selectedPresetId: string) => {
const uniquePresetIds = Array.from(new Set([selectedPresetId, ...QUICK_SOUND_FALLBACK_IDS]));
return uniquePresetIds
export const getQuickSoundPresets = (presets: SoundPreset[]) => {
return QUICK_SOUND_FALLBACK_IDS
.map((presetId) => presets.find((preset) => preset.id === presetId))
.filter(isQuickAvailablePreset)
.slice(0, 3);