SPB Git

spb/vquant Public MIT

VibeQuant — AI-powered institutional-grade financial intelligence platform.

TypeScript 84.3% Python 11.7% JavaScript 1.6% CSS 1.5% HTML 0.7%
1.2 KB · 41 lines tsx
Raw Blame History
1/*2 * =============================================================================3 *  VibeQuant (vquant) — AI-Powered Financial Intelligence Platform4 * -----------------------------------------------------------------------------5 *  File:      client/src/components/theme-toggle.tsx6 *7 *  Author:    Simon-Pierre Boucher8 *  Contact:   contact@spboucher.ai9 *  Website:   https://www.spboucher.ai10 *  Demo:      https://www.vquant.ai11 *  License:   MIT (see LICENSE)12 *13 *  Copyright © 2026 Simon-Pierre Boucher. All rights reserved.14 * =============================================================================15 */1617import { Moon, Sun } from "lucide-react";18import { Button } from "@/components/ui/button";19import { useTheme } from "./theme-provider";2021export function ThemeToggle() {22  const { theme, toggleTheme } = useTheme();2324  return (25    <Button26      variant="ghost"27      size="icon"28      onClick={toggleTheme}29      data-testid="button-theme-toggle"30      className="hover-elevate active-elevate-2"31    >32      {theme === "dark" ? (33        <Sun className="h-5 w-5" data-testid="icon-sun" />34      ) : (35        <Moon className="h-5 w-5" data-testid="icon-moon" />36      )}37      <span className="sr-only">Toggle theme</span>38    </Button>39  );40}41