import React from 'react'; import { Switch } from '@headlessui/react'; import { useTheme } from '@/lib/theme-context'; interface PricingToggleProps { isYearly: boolean; onToggle: () => void; } const PricingToggle: React.FC = ({ isYearly, onToggle }) => { const { theme } = useTheme(); const thumbColor = theme === 'dark' ? 'bg-white' : 'bg-gray-900'; const trackColor = theme === 'dark' ? 'bg-gray-700' : 'bg-gray-200'; const activeTrackColor = theme === 'dark' ? 'bg-indigo-600' : 'bg-indigo-500'; return (
Monthly
Yearly
); }; export default PricingToggle;