| 1 | "use client"; |
| 2 | |
| 3 | import { cn } from "@/lib/utils"; |
| 4 | |
| 5 | interface ThemeModalTabsProps { |
| 6 | activeTab: "standard" | "public"; |
| 7 | onTabChange: (tab: "standard" | "public") => void; |
| 8 | } |
| 9 | |
| 10 | export function ThemeModalTabs({ |
| 11 | activeTab, |
| 12 | onTabChange, |
| 13 | }: ThemeModalTabsProps) { |
| 14 | return ( |
| 15 | <div className="px-4 pt-4"> |
| 16 | <div className="flex gap-1 rounded-lg bg-muted p-1"> |
| 17 | <button |
| 18 | onClick={() => onTabChange("standard")} |
| 19 | className={cn( |
| 20 | "flex-1 rounded-md px-3 py-2 text-sm font-medium transition-colors", |
| 21 | activeTab === "standard" |
| 22 | ? "bg-background text-foreground shadow-xs" |
| 23 | : "text-muted-foreground hover:text-foreground", |
| 24 | )} |
| 25 | > |
| 26 | ALLWEONE |
| 27 | </button> |
| 28 | <button |
| 29 | onClick={() => onTabChange("public")} |
| 30 | className={cn( |
| 31 | "flex-1 rounded-md px-3 py-2 text-sm font-medium transition-colors", |
| 32 | activeTab === "public" |
| 33 | ? "bg-background text-foreground shadow-xs" |
| 34 | : "text-muted-foreground hover:text-foreground", |
| 35 | )} |
| 36 | > |
| 37 | Public |
| 38 | </button> |
| 39 | </div> |
| 40 | </div> |
| 41 | ); |
| 42 | } |
| 43 |