add layer panel

This commit is contained in:
hamid zarghami
2025-12-31 10:33:16 +03:30
parent efcb9cf6d2
commit a729777cb8
2 changed files with 150 additions and 2 deletions
+10 -2
View File
@@ -1,10 +1,18 @@
import { type FC } from 'react'
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="flex h-full w-full">
<div className={clx(
"flex h-full w-full",
isLayersPanelOpen ? "xl:pl-[296px]" : "xl:pl-[80px]"
)}>
<LayersPanel isOpen={isLayersPanelOpen} setIsOpen={setIsLayersPanelOpen} />
<EditorCanvas />
<EditorSidebar />
</div>