/* eslint-disable react/jsx-key */
import { CheckRounded } from '@mui/icons-material'
import { Box, Button, Card, Container, Typography } from '@mui/joy'
import React from 'react'
import { useNavigate } from 'react-router-dom'
const PricingSection = () => {
const navigate = useNavigate()
const FEATURES_FREE = [
['Create Tasks and Chores', ],
['Limited Task History', ],
['Circle up to two members', ],
]
const FEATURES_PREMIUM = [
['All Basic Features', ],
['Hosted on DoneTick servers', ],
['Up to 8 Circle Members', ],
[
'Notification through Telegram (Discord coming soon)',
,
],
['Unlimited History', ],
[
'All circle members get the same features as the owner',
,
],
]
const FEATURES_YEARLY = [
// ['All Basic Features', ],
// ['Up to 8 Circle Members', ],
['Notification through Telegram bot', ],
['Custom Webhook/API Integration', ],
['Unlimited History', ],
['Priority Support', ],
]
const PRICEITEMS = [
{
title: 'Basic',
description:
'Hosted on Donetick servers, supports up to 2 circle members and includes all the features of the free plan.',
price: 0,
previousPrice: 0,
interval: 'month',
discount: false,
features: FEATURES_FREE,
},
{
title: 'Plus',
description:
// 'Supports up to 8 circle members and includes all the features of the Basic plan.',
'Hosted on Donetick servers, supports up to 8 circle members and includes all the features of the Basic plan.',
price: 30.0,
// previousPrice: 76.89,
interval: 'year',
// discount: true,
features: FEATURES_YEARLY,
},
]
return (
Pricing
Choose the plan that works best for you.
{PRICEITEMS.map((pi, index) => (
{pi.title}{pi.description}
{pi.discount && (
${pi.previousPrice}
)}
${pi.price}
/ {pi.interval}
Features
{pi.features.map(feature => (
{feature[0]}
))}
{/* Here start the test */}
))}
{/* Here start the test */}
)
}
export default PricingSection