Files
aso/frontend/dashboard/src/_mock/_analytics.tsx
2023-07-03 11:39:08 +07:00

51 lines
1.3 KiB
TypeScript

// components
import Iconify from '../components/Iconify';
//
import _mock from './_mock';
// ----------------------------------------------------------------------
export const _analyticPost = [...Array(5)].map((_, index) => ({
id: _mock.id(index),
title: _mock.text.title(index),
description: _mock.text.description(index),
image: _mock.image.cover(index),
postedAt: _mock.time(index),
}));
export const _analyticOrderTimeline = [...Array(5)].map((_, index) => ({
id: _mock.id(index),
title: [
'1983, orders, $4220',
'12 Invoices have been paid',
'Order #37745 from September',
'New order placed #XF-2356',
'New order placed #XF-2346',
][index],
type: `order${index + 1}`,
time: _mock.time(index),
}));
export const _analyticTraffic = [
{
name: 'FaceBook',
value: 323234,
icon: <Iconify icon={'eva:facebook-fill'} color="#1877F2" width={32} height={32} />,
},
{
name: 'Google',
value: 341212,
icon: <Iconify icon={'eva:google-fill'} color="#DF3E30" width={32} height={32} />,
},
{
name: 'Linkedin',
value: 411213,
icon: <Iconify icon={'eva:linkedin-fill'} color="#006097" width={32} height={32} />,
},
{
name: 'Twitter',
value: 443232,
icon: <Iconify icon={'eva:twitter-fill'} color="#1C9CEA" width={32} height={32} />,
},
];