import { IconMoon, IconSun } from "@tabler/icons-react"; import { FC } from "react"; import { ClearConversations } from "./ClearConversations"; import { Key } from "./Key"; import { SidebarButton } from "./SidebarButton"; interface Props { lightMode: "light" | "dark"; apiKey: string; onToggleLightMode: (mode: "light" | "dark") => void; onApiKeyChange: (apiKey: string) => void; onClearConversations: () => void; } export const SidebarSettings: FC = ({ lightMode, apiKey, onToggleLightMode, onApiKeyChange, onClearConversations }) => { return (
: } onClick={() => onToggleLightMode(lightMode === "light" ? "dark" : "light")} />
); };