mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-22 00:37:05 +08:00
18 lines
388 B
TypeScript
Executable File
18 lines
388 B
TypeScript
Executable File
import { styled } from '@toeverything/components/ui';
|
|
import { DndTree } from './DndTree';
|
|
import { useDndTreeAutoUpdate } from './use-page-tree';
|
|
|
|
const Root = styled('div')({
|
|
minWidth: '160px',
|
|
maxWidth: '276px',
|
|
});
|
|
|
|
export const PageTree = () => {
|
|
useDndTreeAutoUpdate();
|
|
return (
|
|
<Root>
|
|
<DndTree collapsible removable />
|
|
</Root>
|
|
);
|
|
};
|