Spaces:
Running
Running
Add new multipages stuffs
Browse files
components/editor/pages/index.tsx
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
import { Page } from "@/types";
|
2 |
-
import { PlusIcon } from "lucide-react";
|
3 |
import { ListPagesItem } from "./page";
|
4 |
|
5 |
export function ListPages({
|
6 |
pages,
|
7 |
currentPage,
|
8 |
onSelectPage,
|
9 |
-
onNewPage,
|
10 |
onDeletePage,
|
11 |
}: {
|
12 |
pages: Array<Page>;
|
@@ -27,13 +27,13 @@ export function ListPages({
|
|
27 |
index={i}
|
28 |
/>
|
29 |
))}
|
30 |
-
<button
|
31 |
className="max-h-14 min-h-14 pl-2 pr-4 py-4 text-neutral-400 cursor-pointer text-sm hover:bg-neutral-900 flex items-center justify-center gap-1 text-nowrap"
|
32 |
onClick={onNewPage}
|
33 |
>
|
34 |
<PlusIcon className="h-3" />
|
35 |
New Page
|
36 |
-
</button>
|
37 |
</div>
|
38 |
);
|
39 |
}
|
|
|
1 |
import { Page } from "@/types";
|
2 |
+
// import { PlusIcon } from "lucide-react";
|
3 |
import { ListPagesItem } from "./page";
|
4 |
|
5 |
export function ListPages({
|
6 |
pages,
|
7 |
currentPage,
|
8 |
onSelectPage,
|
9 |
+
// onNewPage,
|
10 |
onDeletePage,
|
11 |
}: {
|
12 |
pages: Array<Page>;
|
|
|
27 |
index={i}
|
28 |
/>
|
29 |
))}
|
30 |
+
{/* <button
|
31 |
className="max-h-14 min-h-14 pl-2 pr-4 py-4 text-neutral-400 cursor-pointer text-sm hover:bg-neutral-900 flex items-center justify-center gap-1 text-nowrap"
|
32 |
onClick={onNewPage}
|
33 |
>
|
34 |
<PlusIcon className="h-3" />
|
35 |
New Page
|
36 |
+
</button> */}
|
37 |
</div>
|
38 |
);
|
39 |
}
|