diff --git a/vault/components/view-toggle.tsx b/vault/components/view-toggle.tsx new file mode 100644 index 0000000..0840051 --- /dev/null +++ b/vault/components/view-toggle.tsx @@ -0,0 +1,33 @@ +"use client"; + +import { LayoutGrid, List } from "lucide-react"; +import { Button } from "@/components/ui/button"; +import { cn } from "@/lib/utils"; + +interface ViewToggleProps { + view: "grid" | "list"; + onChange: (view: "grid" | "list") => void; +} + +export function ViewToggle({ view, onChange }: ViewToggleProps) { + return ( +
+ + +
+ ); +}