"use client"; import React from "react"; import { useTheme } from "@/lib/contexts/ThemeContext"; interface ThemedButtonProps { children: React.ReactNode; onClick?: () => void; variant?: "primary" | "secondary" | "outline"; size?: "sm" | "md" | "lg"; disabled?: boolean; className?: string; } export const ThemedButton: React.FC = ({ children, onClick, variant = "primary", size = "md", disabled = false, className = "", }) => { const { colors } = useTheme(); const sizeClasses = { sm: "px-3 py-1.5 text-sm", md: "px-4 py-2 text-base", lg: "px-6 py-3 text-lg", }; const variantStyles = { primary: { backgroundColor: colors.primary, color: "white", border: `1px solid ${colors.primary}`, hover: { backgroundColor: colors.secondary, borderColor: colors.secondary, }, }, secondary: { backgroundColor: colors.surface, color: colors.text, border: `1px solid ${colors.border}`, hover: { backgroundColor: colors.hover, borderColor: colors.primary, }, }, outline: { backgroundColor: "transparent", color: colors.primary, border: `1px solid ${colors.primary}`, hover: { backgroundColor: colors.primary, color: "white", }, }, }; const style = variantStyles[variant]; return ( ); };