blob: d385111aaa6b027ccb0cf93004734d5c6de0d414 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
"use client";
import BulkBookmarksAction from "@/components/dashboard/BulkBookmarksAction";
import SortOrderToggle from "@/components/dashboard/SortOrderToggle";
import ViewOptions from "@/components/dashboard/ViewOptions";
import { useInBookmarkGridStore } from "@/lib/store/useInBookmarkGridStore";
export default function GlobalActions() {
const inBookmarkGrid = useInBookmarkGridStore(
(state) => state.inBookmarkGrid,
);
return (
<div className="flex min-w-max flex-wrap overflow-hidden">
{inBookmarkGrid && <ViewOptions />}
{inBookmarkGrid && <BulkBookmarksAction />}
{inBookmarkGrid && <SortOrderToggle />}
</div>
);
}
|