File size: 1,488 Bytes
56b6519
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { useTranslation } from 'react-i18next';
import { Outlet } from 'react-router-dom';

import { Sidebar } from '../../components/navbar/Sidebar';
import {
  BuildingOffice2Icon,
  UserGroupIcon,
  FaceSmileIcon,
  ArchiveBoxIcon,
  ArrowTopRightOnSquareIcon,
  DocumentTextIcon,
} from '@heroicons/react/20/solid';

export const Data = () => {
  const { t } = useTranslation();
  const sidebarList = [
    {
      name: t('collaborators'),
      value: 'collaborators',
      id: 1,
      icon: <UserGroupIcon className="h-8 w-auto" />,
    },
    {
      name: t('companies'),
      value: 'companies',
      id: 2,
      icon: <BuildingOffice2Icon className="h-8 w-auto" />,
    },
    {
      name: t('clients'),
      value: 'clients',
      id: 3,
      icon: <FaceSmileIcon className="h-8 w-auto" />,
    },
    {
      name: t('templates'),
      value: 'templates',
      id: 4,
      icon: <DocumentTextIcon className="h-8 w-auto" />,
    },
    {
      name: t('customData'),
      value: 'customData',
      id: 5,
      icon: <ArchiveBoxIcon className="h-8 w-auto" />,
    },
    {
      name: `${t('import')} / ${t('export')}`,
      value: 'importExport',
      id: 6,
      icon: <ArrowTopRightOnSquareIcon className="h-8 w-auto" />,
    },
  ];
  return (
    <div className="flex overflow-hidden">
      <Sidebar items={sidebarList} title={t('handleCustomData')} />
      <div className="flex-1 overflow-auto p-8">
        <Outlet />
      </div>
    </div>
  );
};