Files
AFFiNE-Mirror/libs/components/layout/src/workspace-sidebar/page-tree/PageTree.tsx
2022-08-11 16:17:02 +08:00

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>
);
};