| 1 | "use client"; |
| 2 | |
| 3 | import { ThemePanel } from "@/components/presentation/edit-panel/sections/ThemePanel"; |
| 4 | import { ScrollArea } from "@/components/ui/scroll-area"; |
| 5 | import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; |
| 6 | import { FontsSection } from "./FontsSection"; |
| 7 | |
| 8 | export function ThemeSection() { |
| 9 | return ( |
| 10 | <div className="-mx-4 flex h-full flex-col"> |
| 11 | <Tabs defaultValue="fonts" className="flex h-full flex-col"> |
| 12 | <TabsList className="w-full justify-start gap-0 rounded-none border-b border-border bg-transparent p-0"> |
| 13 | <TabsTrigger |
| 14 | value="themes" |
| 15 | className="flex-1 rounded-none border-b-2 border-transparent px-4 py-3 data-[state=active]:border-primary data-[state=active]:bg-transparent" |
| 16 | > |
| 17 | Themes |
| 18 | </TabsTrigger> |
| 19 | <TabsTrigger |
| 20 | value="fonts" |
| 21 | className="flex-1 rounded-none border-b-2 border-transparent px-4 py-3 data-[state=active]:border-primary data-[state=active]:bg-transparent" |
| 22 | > |
| 23 | Fonts |
| 24 | </TabsTrigger> |
| 25 | </TabsList> |
| 26 | |
| 27 | <ScrollArea className="flex-1"> |
| 28 | <div className="p-6"> |
| 29 | <TabsContent value="themes" className="m-0"> |
| 30 | <ThemePanel /> |
| 31 | </TabsContent> |
| 32 | <TabsContent value="fonts" className="m-0"> |
| 33 | <FontsSection /> |
| 34 | </TabsContent> |
| 35 | </div> |
| 36 | </ScrollArea> |
| 37 | </Tabs> |
| 38 | </div> |
| 39 | ); |
| 40 | } |
| 41 |