Files
dpage-editor/src/pages/editor/Editor.tsx
T
hamid zarghami a729777cb8 add layer panel
2025-12-31 10:33:16 +03:30

22 lines
683 B
TypeScript

import { type FC, useState } from 'react'
import { clx } from '@/helpers/utils'
import EditorSidebar from './components/EditorSidebar'
import EditorCanvas from './components/EditorCanvas'
import LayersPanel from './components/LayersPanel'
const Editor: FC = () => {
const [isLayersPanelOpen, setIsLayersPanelOpen] = useState(false)
return (
<div className={clx(
"flex h-full w-full",
isLayersPanelOpen ? "xl:pl-[296px]" : "xl:pl-[80px]"
)}>
<LayersPanel isOpen={isLayersPanelOpen} setIsOpen={setIsLayersPanelOpen} />
<EditorCanvas />
<EditorSidebar />
</div>
)
}
export default Editor