import React from 'react';
import { blue, common, grey, purple } from '@material-ui/core/colors';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import {
faAd,
faPlaneArrival,
faPhoneAlt,
faWonSign,
faStickyNote,
} from '@fortawesome/free-solid-svg-icons';
import { faTwitter } from '@fortawesome/free-brands-svg-icons';
import ContactsIcon from '@material-ui/icons/Contacts';
import SettingsIcon from '@material-ui/icons/Settings';
import MessageIcon from '@material-ui/icons/Message';
import { CalculatorIcon } from '../../../apps/calculator/components/CalculatorIcon';
import CameraAltIcon from '@material-ui/icons/CameraAlt';
import { DialerApp } from '../../../apps/dialer/components/DialerApp';
import { ContactsApp } from '../../../apps/contacts/components/ContactsApp';
import { CalculatorApp } from '../../../apps/calculator/components/CalculatorApp';
import { SettingsApp } from '../../../apps/settings/components/SettingsApp';
import { BankApp } from '../../../apps/bank/components/BankApp';
import { MessagesApp } from '../../../apps/messages/components/MessagesApp';
import { TwitterApp } from '../../../apps/twitter/components/TwitterApp';
import { ExampleApp } from '../../../apps/example/components/ExampleApp';
import { SelloutApp } from '../../../apps/sellout/components/SelloutApp';
import { NotesApp } from '../../../apps/notes/NotesApp';
import CameraApp from '../../../apps/camera/components/CameraApp';
import { AppRoute } from '../components/AppRoute';
import {
MESSAGES_APP_PRIMARY_COLOR,
MESSAGES_APP_TEXT_COLOR,
} from '../../../apps/messages/messages.theme';
import {
CONTACTS_APP_PRIMARY_COLOR,
CONTACTS_APP_TEXT_COLOR,
} from '../../../apps/contacts/contacts.theme';
import {
SELLOUT_APP_PRIMARY_COLOR,
SELLOUT_APP_ICON_COLOR,
} from '../../../apps/sellout/sellout.theme';
import { NOTES_APP_ICON_COLOR, NOTES_APP_PRIMARY_COLOR } from '../../../apps/notes/notes.theme';
import { DIALER_APP_PRIMARY_COLOR, DIALER_APP_TEXT_COLOR } from '../../../apps/dialer/dialer.theme';
import {
TWITTER_APP_PRIMARY_COLOR,
TWITTER_APP_TEXT_COLOR,
} from '../../../apps/twitter/twitter.theme';
export interface IAppConfig {
id: string;
nameLocale: string;
icon: JSX.Element;
notificationIcon: JSX.Element;
backgroundColor: string;
color: string;
path: string;
Route: React.FC;
}
export const APPS: IAppConfig[] = [
{
id: 'DIALER',
nameLocale: 'APPS_DIALER',
icon: ,
notificationIcon: ,
backgroundColor: DIALER_APP_PRIMARY_COLOR,
color: DIALER_APP_TEXT_COLOR,
path: '/phone',
Route: () => ,
},
{
id: 'MESSAGES',
nameLocale: 'APPS_MESSAGES',
icon: ,
notificationIcon: ,
backgroundColor: MESSAGES_APP_PRIMARY_COLOR,
color: MESSAGES_APP_TEXT_COLOR,
path: '/messages',
Route: () => ,
},
{
id: 'CONTACTS',
nameLocale: 'APPS_CONTACTS',
icon: ,
notificationIcon: ,
backgroundColor: CONTACTS_APP_PRIMARY_COLOR,
color: CONTACTS_APP_TEXT_COLOR,
path: '/contacts',
Route: () => ,
},
{
id: 'CALCULATOR',
nameLocale: 'APPS_CALCULATOR',
icon: ,
notificationIcon: ,
backgroundColor: purple[500],
color: grey[50],
path: '/calculator',
Route: () => ,
},
{
id: 'SETTINGS',
nameLocale: 'APPS_SETTINGS',
icon: ,
notificationIcon: ,
backgroundColor: '#383838',
color: grey[50],
path: '/settings',
Route: () => ,
},
{
id: 'BANK',
nameLocale: 'APPS_BANK',
icon: ,
notificationIcon: ,
backgroundColor: blue[900],
color: common.white,
path: '/bank',
Route: () => ,
},
{
id: 'TWITTER',
nameLocale: 'APPS_TWITTER',
icon: ,
notificationIcon: ,
backgroundColor: TWITTER_APP_PRIMARY_COLOR,
color: TWITTER_APP_TEXT_COLOR,
path: '/twitter',
Route: () => ,
},
{
id: 'SELLOUT',
nameLocale: 'APPS_SELLOUT',
icon: ,
notificationIcon: ,
backgroundColor: SELLOUT_APP_PRIMARY_COLOR,
color: SELLOUT_APP_ICON_COLOR,
path: '/sellout',
Route: () => ,
},
{
id: 'NOTES',
nameLocale: 'APPS_NOTES',
icon: ,
notificationIcon: ,
backgroundColor: NOTES_APP_PRIMARY_COLOR,
color: NOTES_APP_ICON_COLOR,
path: '/notes',
Route: () => ,
},
{
id: 'CAMERA',
nameLocale: 'APPS_CAMERA',
icon: ,
notificationIcon: ,
backgroundColor: grey['A400'],
color: common.white,
path: '/camera',
Route: () => ,
},
];
// Example app only in dev
if (process.env.NODE_ENV === 'development') {
APPS.push({
id: 'EXAMPLE',
nameLocale: 'APPS_EXAMPLE',
icon: ,
notificationIcon: ,
backgroundColor: blue[500],
color: blue[50],
path: '/example',
Route: () => ,
});
}