import { getColorThemes } from "../layout/theme/color-themes"; import { Center, IconButton, VStack } from "@chakra-ui/react"; import userOptionsStore from "../stores/UserOptionsStore"; import { Circle } from "lucide-react"; import { toolbarButtonZIndex } from "./toolbar/Toolbar"; import React from "react"; import { useIsMobile } from "./contexts/MobileContext"; export function ThemeSelectionOptions() { const children = []; const isMobile = useIsMobile(); for (const theme of getColorThemes()) { children.push( userOptionsStore.selectTheme(theme.name)} size="xs" icon={ } bg="transparent" borderRadius="50%" // Ensures the button has a circular shape stroke="transparent" color="transparent" _hover={{ svg: { transition: "stroke 0.3s ease-in-out", // Smooth transition effect }, }} zIndex={toolbarButtonZIndex} />, ); } return (
{children}
); }