feat(admin): 관리자 대시보드와 미디어 자산 UI를 추가
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useEffect, useMemo, useRef, useState, type FormEvent } from 'react';
|
||||
import type { SceneAssetMap } from '@/entities/media';
|
||||
import type { SceneTheme } from '@/entities/scene';
|
||||
import type { GoalChip, SoundPreset, TimerPreset } from '@/entities/session';
|
||||
import { SceneSelectCarousel } from '@/features/scene-select';
|
||||
@@ -13,6 +14,7 @@ type RitualPopover = 'space' | 'timer' | 'sound';
|
||||
interface SpaceSetupDrawerWidgetProps {
|
||||
open: boolean;
|
||||
scenes: SceneTheme[];
|
||||
sceneAssetMap?: SceneAssetMap;
|
||||
selectedSceneId: string;
|
||||
selectedTimerLabel: string;
|
||||
selectedSoundPresetId: string;
|
||||
@@ -64,6 +66,7 @@ const SummaryChip = ({ label, value, open, onClick }: SummaryChipProps) => {
|
||||
export const SpaceSetupDrawerWidget = ({
|
||||
open,
|
||||
scenes,
|
||||
sceneAssetMap,
|
||||
selectedSceneId,
|
||||
selectedTimerLabel,
|
||||
selectedSoundPresetId,
|
||||
@@ -207,6 +210,7 @@ export const SpaceSetupDrawerWidget = ({
|
||||
<SceneSelectCarousel
|
||||
scenes={scenes.slice(0, 4)}
|
||||
selectedSceneId={selectedSceneId}
|
||||
sceneAssetMap={sceneAssetMap}
|
||||
onSelect={(sceneId) => {
|
||||
onSceneSelect(sceneId);
|
||||
setOpenPopover(null);
|
||||
|
||||
Reference in New Issue
Block a user