add layer panel
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user