-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53bf873
commit a0cfb5d
Showing
3 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { useAtomValue } from 'jotai' | ||
import { memo } from 'react' | ||
|
||
import { currentSelection } from '../store' | ||
|
||
export const Layout = memo((props: { minimized?: boolean }) => { | ||
const node = useAtomValue(currentSelection) | ||
|
||
return ( | ||
<div | ||
className={`${props.minimized ? 'hidden' : 'block'} p-4 border-t border-#e5e5e5 border-solid font-600 text-13px`} | ||
> | ||
<div className="flex items-center gap-2"> | ||
<span className="flex-1">Layout</span> | ||
</div> | ||
<div className=" bg-#f5f5f5 rounded-sm"></div> | ||
</div> | ||
) | ||
}) |