import React from "react"; import { List, LayoutGrid } from "lucide-react"; import { useStore } from "@nanostores/react"; import { $feedLayout, setFeedLayout, type FeedLayout, } from "../../store/feedLayout"; import { clsx } from "clsx"; export default function LayoutToggle({ className }: { className?: string }) { const layout = useStore($feedLayout); const options: { id: FeedLayout; icon: typeof List; label: string }[] = [ { id: "list", icon: List, label: "List" }, { id: "mosaic", icon: LayoutGrid, label: "Mosaic" }, ]; return (
{options.map((opt) => ( ))}
); }