'use client'; import Link from 'next/link'; import React, { useState } from 'react'; function PricingSectionBlue() { const [billingCycle, setBillingCycle] = useState('monthly'); const discountRate = 20; // Define the discount rate in percentage const pricingPlans = [ { name: 'Basic Plan', monthlyPrice: 10, description: 'Basic features for up to 10 users.', features: [ 'Access to essential tools', 'Basic chat and email support', 'Limited storage capacity', 'Monthly usage reports', ], link: 'https://i.imgur.com/qFObPeq.png', }, { name: 'Business Plan', monthlyPrice: 25, description: 'Advanced tools for up to 20 users.', features: [ 'Advanced tools for power users', 'Priority support with live chat', 'More storage and bandwidth', 'Detailed analytics', ], link: 'https://i.imgur.com/qFObPeq.png', }, { name: 'Enterprise Plan', monthlyPrice: 40, description: 'Advanced features + unlimited users.', features: [ 'Custom solutions for big teams', 'Dedicated account manager', 'Unlimited storage and bandwidth', 'Advanced analytics and reporting', ], link: 'https://i.imgur.com/qFObPeq.png', }, ]; // Function to calculate the annual price const calculateAnnualPrice = (monthlyPrice: number) => { return monthlyPrice * 12 * (1 - discountRate / 100); }; return (