import PropTypes from 'prop-types'; import { useState } from 'react'; // @mui import { useTheme } from '@mui/material/styles'; import Grid from '@mui/material/Grid'; import Stack from '@mui/material/Stack'; import Tab from '@mui/material/Tab'; import Tabs from '@mui/material/Tabs'; import Typography from '@mui/material/Typography'; import Box from '@mui/material/Box'; // @project import ProgressCard from '@/components/cards/ProgressCard'; import { TabsType } from '@/enum'; import { getRadiusStyles } from '@/utils/getRadiusStyles'; /*************************** TABS - DATA ***************************/ const sevenDaysData = [ { title: 'Direct', value: '16,890', progress: { value: 45 } }, { title: 'Google.com', value: '4,909', progress: { value: 56 } }, { title: 'Remix.com', value: '550', progress: { value: 74 } }, { title: 'dev.to', value: '140', progress: { value: 25 } }, { title: 'acpc.api.ic.io', value: '8,675', progress: { value: 45 } }, { title: 'wewe.uv.us', value: '4,900', progress: { value: 95 } } ]; const monthData = [ { title: 'Direct', value: '67,560', progress: { value: 75 } }, { title: 'Google.com', value: '19,636', progress: { value: 45 } }, { title: 'Remix.com', value: '2,220', progress: { value: 10 } }, { title: 'dev.to', value: '560', progress: { value: 89 } }, { title: 'acpc.api.ic.io', value: '34,700', progress: { value: 95 } }, { title: 'wewe.uv.us', value: '19,600', progress: { value: 74 } } ]; const yearData = [ { title: 'Direct', value: '8,10,720', progress: { value: 52 } }, { title: 'Google.com', value: '2,35,632', progress: { value: 45 } }, { title: 'Remix.com', value: '26,640', progress: { value: 85 } }, { title: 'dev.to', value: '6,720', progress: { value: 42 } }, { title: 'acpc.api.ic.io', value: '4,16,400', progress: { value: 55 } }, { title: 'wewe.uv.us', value: '2,35,200', progress: { value: 45 } } ]; const routesData = [ { title: 'Home', value: '16,890', progress: { value: 15 } }, { title: 'Pricing', value: '4,909', progress: { value: 78 } }, { title: 'Change-log', value: '550', progress: { value: 25 } }, { title: 'Feature', value: '140', progress: { value: 47 } }, { title: 'Service', value: '8,675', progress: { value: 20 } }, { title: 'Pricing', value: '4,900', progress: { value: 74 } } ]; const pageData = [ { title: 'Home', value: '67,560', progress: { value: 45 } }, { title: 'Pricing', value: '19,636', progress: { value: 25 } }, { title: 'Change-log', value: '2,220', progress: { value: 74 } }, { title: 'Feature', value: '560', progress: { value: 44 } }, { title: 'Service', value: '34,700', progress: { value: 41 } }, { title: 'Pricing', value: '19,600', progress: { value: 95 } } ]; const affiliateData = [ { title: 'No-Refference', value: '16,890', progress: { value: 44 } }, { title: 'Medium', value: '4,909', progress: { value: 90 } }, { title: 'remaixblock.com', value: '550', progress: { value: 20 } }, { title: 'remaix-pge-block-hero', value: '140', progress: { value: 85 } }, { title: 'remaix-pge-block-banner', value: '8,675', progress: { value: 75 } }, { title: 'dev.io', value: '4,900', progress: { value: 78 } } ]; const campaignData = [ { title: 'No-Refference', value: '67,560', progress: { value: 25 } }, { title: 'Medium', value: '19,636', progress: { value: 74 } }, { title: 'remaixblock.com', value: '2,220', progress: { value: 65 } }, { title: 'remaix-pge-block-hero', value: '560', progress: { value: 45 } }, { title: 'remaix-pge-block-banner', value: '34,700', progress: { value: 85 } }, { title: 'dev.io', value: '19,600', progress: { value: 47 } } ]; const marketingData = [ { title: 'No-Refference', value: '8,10,720', progress: { value: 41 } }, { title: 'Medium', value: '2,35,632', progress: { value: 35 } }, { title: 'remaixblock.com', value: '26,640', progress: { value: 55 } }, { title: 'remaix-pge-block-hero', value: '6,720', progress: { value: 75 } }, { title: 'remaix-pge-block-banner', value: '4,16,400', progress: { value: 100 } }, { title: 'dev.io', value: '2,35,200', progress: { value: 20 } } ]; /*************************** TABS - A11Y ***************************/ function a11yProps(value) { return { value: value, id: `simple-tab-${value}`, 'aria-controls': `simple-tabpanel-${value}` }; } /*************************** TABS - PANEL ***************************/ function TabPanel({ children, value, index, ...other }) { return (