import React from "react"; import { GridIcon, ListIcon, TableIcon } from "../../icons"; import Button from "../ui/button/Button"; export type ViewType = "table" | "kanban" | "list"; interface ViewToggleProps { currentView: ViewType; onViewChange: (view: ViewType) => void; className?: string; } const ViewToggle: React.FC = ({ currentView, onViewChange, className = "", }) => { const views: { type: ViewType; icon: React.ReactNode; label: string }[] = [ { type: "table", icon: , label: "Table" }, { type: "kanban", icon: , label: "Kanban" }, { type: "list", icon: , label: "List" }, ]; return (
{views.map((view) => ( ))}
); }; export default ViewToggle;