mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
23 lines
458 B
TypeScript
Executable File
23 lines
458 B
TypeScript
Executable File
import style9 from 'style9';
|
|
|
|
import { DndTree } from './DndTree';
|
|
import { useDndTreeAutoUpdate } from './use-page-tree';
|
|
|
|
const styles = style9.create({
|
|
root: {
|
|
minWidth: 160,
|
|
maxWidth: 260,
|
|
marginLeft: 18,
|
|
marginRight: 6,
|
|
},
|
|
});
|
|
|
|
export const PageTree = () => {
|
|
useDndTreeAutoUpdate();
|
|
return (
|
|
<div className={styles('root')}>
|
|
<DndTree collapsible removable />
|
|
</div>
|
|
);
|
|
};
|