// ** React Imports import { Ref, useState, forwardRef, ReactElement, ChangeEvent } from 'react' // ** MUI Imports import Box from '@mui/material/Box' import Card from '@mui/material/Card' import Switch from '@mui/material/Switch' import Dialog from '@mui/material/Dialog' import Button from '@mui/material/Button' import IconButton from '@mui/material/IconButton' import Typography from '@mui/material/Typography' import InputLabel from '@mui/material/InputLabel' import CardContent from '@mui/material/CardContent' import Fade, { FadeProps } from '@mui/material/Fade' import DialogContent from '@mui/material/DialogContent' // ** Icon Imports import Icon from 'src/@core/components/icon' // ** Types import { PricingPlanType } from 'src/@core/components/plan-details/types' // ** Component Import interface Props { data: PricingPlanType[] } const Transition = forwardRef(function Transition( props: FadeProps & { children?: ReactElement }, ref: Ref ) { return }) const DialogPricing = ({ data }: Props) => { // ** States const [show, setShow] = useState(false) const [plan, setPlan] = useState<'monthly' | 'annually'>('annually') const handleChange = (e: ChangeEvent<{ checked: boolean }>) => { if (e.target.checked) { setPlan('annually') } else { setPlan('monthly') } } return ( Pricing Elegant pricing options dialog popup example, easy to use in any page. setShow(false)} TransitionComponent={Transition} onBackdropClick={() => setShow(false)} > [`${theme.spacing(5)} !important`, `${theme.spacing(15)} !important`], py: theme => [`${theme.spacing(8)} !important`, `${theme.spacing(12.5)} !important`] }} > setShow(false)} sx={{ position: 'absolute', right: '1rem', top: '1rem' }} > Subscription Plan All plans include 40+ advanced tools and features to boost your product. Choose the best plan to fit your needs. Monthly Annually Still Not Convinced? Start with a 14-day FREE trial! ) } export default DialogPricing