chore(cleanup): 미사용 코드 정리 및 레거시 파일 삭제
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
'use client';
|
||||
|
||||
import { useState } from 'react';
|
||||
|
||||
export type SpaceToolPanel = 'sound' | 'room' | 'notes' | 'quick' | null;
|
||||
|
||||
export const useSpaceToolsDock = () => {
|
||||
const [activePanel, setActivePanel] = useState<SpaceToolPanel>(null);
|
||||
|
||||
const togglePanel = (panel: Exclude<SpaceToolPanel, null>) => {
|
||||
setActivePanel((current) => (current === panel ? null : panel));
|
||||
};
|
||||
|
||||
const closePanel = () => {
|
||||
setActivePanel(null);
|
||||
};
|
||||
|
||||
return {
|
||||
activePanel,
|
||||
togglePanel,
|
||||
closePanel,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user