diff --git a/src/widgets/control-center-sheet/ui/ControlCenterSheetWidget.tsx b/src/widgets/control-center-sheet/ui/ControlCenterSheetWidget.tsx index f3c749b..bca8ca5 100644 --- a/src/widgets/control-center-sheet/ui/ControlCenterSheetWidget.tsx +++ b/src/widgets/control-center-sheet/ui/ControlCenterSheetWidget.tsx @@ -4,11 +4,10 @@ import { useMemo } from 'react'; import type { PlanTier } from '@/entities/plan'; import { PRO_LOCKED_ROOM_IDS, - PRO_LOCKED_SOUND_IDS, PRO_LOCKED_TIMER_LABELS, } from '@/entities/plan'; import { getRoomCardBackgroundStyle, type RoomTheme } from '@/entities/room'; -import type { SoundPreset, TimerPreset } from '@/entities/session'; +import type { TimerPreset } from '@/entities/session'; import { cn } from '@/shared/lib/cn'; import { useReducedMotion } from '@/shared/lib/useReducedMotion'; @@ -17,49 +16,15 @@ interface ControlCenterSheetWidgetProps { rooms: RoomTheme[]; selectedRoomId: string; selectedTimerLabel: string; - selectedSoundPresetId: string; sceneRecommendedSoundLabel: string; sceneRecommendedTimerLabel: string; timerPresets: TimerPreset[]; - soundPresets: SoundPreset[]; onSelectRoom: (roomId: string) => void; onSelectTimer: (timerLabel: string) => void; - onSelectSound: (soundPresetId: string) => void; - onApplyPack: (packId: QuickPackId) => void; onLockedClick: (source: string) => void; onResetToRecommended: () => void; } -type QuickPackId = 'balanced' | 'deep-work' | 'gentle'; - -interface QuickPack { - id: QuickPackId; - name: string; - combo: string; - locked: boolean; -} - -const QUICK_PACKS: QuickPack[] = [ - { - id: 'balanced', - name: 'Balanced', - combo: '25/5 + Rain Focus', - locked: false, - }, - { - id: 'deep-work', - name: 'Deep Work', - combo: '50/10 + Deep White', - locked: true, - }, - { - id: 'gentle', - name: 'Gentle', - combo: '25/5 + Silent', - locked: true, - }, -]; - const LockBadge = () => { return ( @@ -82,17 +47,13 @@ export const ControlCenterSheetWidget = ({ rooms, selectedRoomId, selectedTimerLabel, - selectedSoundPresetId, - sceneRecommendedSoundLabel: _sceneRecommendedSoundLabel, - sceneRecommendedTimerLabel: _sceneRecommendedTimerLabel, + sceneRecommendedSoundLabel, + sceneRecommendedTimerLabel, timerPresets, - soundPresets, onSelectRoom, onSelectTimer, - onSelectSound, - onApplyPack, onLockedClick, - onResetToRecommended: _onResetToRecommended, + onResetToRecommended, }: ControlCenterSheetWidgetProps) => { const reducedMotion = useReducedMotion(); const isPro = plan === 'pro'; @@ -107,12 +68,8 @@ export const ControlCenterSheetWidget = ({ return rooms.find((room) => room.id === selectedRoomId) ?? rooms[0]; }, [rooms, selectedRoomId]); - const selectedSound = useMemo(() => { - return soundPresets.find((preset) => preset.id === selectedSoundPresetId) ?? soundPresets[0]; - }, [selectedSoundPresetId, soundPresets]); - return ( -
+
-
- -
- {soundPresets.slice(0, 6).map((preset) => { - const selected = preset.id === selectedSoundPresetId; - const locked = !isPro && PRO_LOCKED_SOUND_IDS.includes(preset.id); - - return ( - - ); - })} -
-
- -
- -
- {QUICK_PACKS.map((pack) => { - const locked = !isPro && pack.locked; - - return ( - - ); - })} -
-
+
+

추천: {sceneRecommendedSoundLabel} · {sceneRecommendedTimerLabel}

+ +
); }; diff --git a/src/widgets/space-tools-dock/model/applyQuickPack.ts b/src/widgets/space-tools-dock/model/applyQuickPack.ts deleted file mode 100644 index d1412ef..0000000 --- a/src/widgets/space-tools-dock/model/applyQuickPack.ts +++ /dev/null @@ -1,31 +0,0 @@ -interface ApplyQuickPackParams { - packId: 'balanced' | 'deep-work' | 'gentle'; - onTimerSelect: (timerLabel: string) => void; - onSelectPreset: (presetId: string) => void; - onApplied?: (message: string) => void; -} - -export const applyQuickPack = ({ - packId, - onTimerSelect, - onSelectPreset, - onApplied, -}: ApplyQuickPackParams) => { - if (packId === 'balanced') { - onTimerSelect('25/5'); - onSelectPreset('rain-focus'); - onApplied?.('Balanced 팩을 적용했어요.'); - return; - } - - if (packId === 'deep-work') { - onTimerSelect('50/10'); - onSelectPreset('deep-white'); - onApplied?.('Deep Work 팩을 적용했어요.'); - return; - } - - onTimerSelect('25/5'); - onSelectPreset('silent'); - onApplied?.('Gentle 팩을 적용했어요.'); -}; diff --git a/src/widgets/space-tools-dock/ui/SpaceToolsDockWidget.tsx b/src/widgets/space-tools-dock/ui/SpaceToolsDockWidget.tsx index 51a2b27..724bcd5 100644 --- a/src/widgets/space-tools-dock/ui/SpaceToolsDockWidget.tsx +++ b/src/widgets/space-tools-dock/ui/SpaceToolsDockWidget.tsx @@ -12,7 +12,6 @@ import { cn } from '@/shared/lib/cn'; import { ControlCenterSheetWidget } from '@/widgets/control-center-sheet'; import { SpaceSideSheet } from '@/widgets/space-sheet-shell'; import type { SpaceAnchorPopoverId, SpaceUtilityPanelId } from '../model/types'; -import { applyQuickPack } from '../model/applyQuickPack'; import { getQuickSoundPresets } from '../model/getQuickSoundPresets'; import { ANCHOR_ICON, formatThoughtCount, UTILITY_PANEL_TITLE } from './constants'; import { FocusRightRail } from './FocusRightRail'; @@ -246,13 +245,6 @@ export const SpaceToolsDockWidget = ({ openUtilityPanel('control-center'); }; - const handleApplyPack = (packId: 'balanced' | 'deep-work' | 'gentle') => - applyQuickPack({ - packId, - onTimerSelect, - onSelectPreset, - }); - const showVolumeFeedback = (nextVolume: number) => { setVolumeFeedback(`${nextVolume}%`); @@ -419,21 +411,15 @@ export const SpaceToolsDockWidget = ({ rooms={rooms} selectedRoomId={selectedRoomId} selectedTimerLabel={selectedTimerLabel} - selectedSoundPresetId={selectedPresetId} sceneRecommendedSoundLabel={sceneRecommendedSoundLabel} sceneRecommendedTimerLabel={sceneRecommendedTimerLabel} timerPresets={timerPresets} - soundPresets={SOUND_PRESETS} onSelectRoom={(roomId) => { onRoomSelect(roomId); }} onSelectTimer={(label) => { onTimerSelect(label); }} - onSelectSound={(presetId) => { - onSelectPreset(presetId); - }} - onApplyPack={handleApplyPack} onLockedClick={handleLockedClick} onResetToRecommended={onResetToSceneRecommended} />