import {
	BillingSvg,
	CompanySettingsSvg,
	PersonalPreferencesSvg
} from '../../../Components/Layout/Header/Components/UI/HeaderButtonsSvg';
import environment from '../../../Environments/environment';

export interface AccountNavInterface {
	headTitle: string;
	subTitles: {
		title: string;
		route: string;
	}[];
	icons: JSX.Element;
}

const {
	personalAccount,
	passwordAndLogin,
	devices,
	companySettings,
	manageUser,
	billingSettings,
	currentPlan,
	manageSubscription,
	moneyForGrowth,
	moneyForCeos,
	cashFlowPerspective,
	workingCapitalMetric,
	financialReturns,
	cashFundingMeters
} = environment.frontendRoutes;

export const AccountNavBarHelper: AccountNavInterface[] = [
	{
		icons: <PersonalPreferencesSvg />,
		headTitle: 'Personal settings',
		subTitles: [
			{
				title: 'General information',
				route: personalAccount
			},
			{
				title: 'Password and login',
				route: passwordAndLogin
			},
			{
				title: 'Devices',
				route: devices
			}
		]
	},
	{
		icons: <CompanySettingsSvg />,
		headTitle: 'Company settings',
		subTitles: [
			{
				title: 'Company settings',
				route: companySettings
			},
			{
				title: 'Manage users',
				route: manageUser
			}
		]
	},
	{
		icons: <BillingSvg />,
		headTitle: 'Billing',
		subTitles: [
			{
				title: 'Billing settings',
				route: billingSettings
			},
			{
				title: 'Current plan',
				route: currentPlan
			},
			{
				title: 'Manage subscriptions',
				route: manageSubscription
			}
		]
	}
];

export interface DashboardInterface {
	headTitle: string;
	subTitles: {
		title: string;
		route: string;
	}[];
	icons: JSX.Element;
}

export const DashboardHelperGrowth: DashboardInterface[] = [
	{
		icons: <CompanySettingsSvg />,
		headTitle: 'Simulators',
		subTitles: [
			{
				title: 'Money for Growth',
				route: moneyForGrowth
			},
			{
				title: 'Money Multiplier for CEOs',
				route: moneyForCeos
			}
		]
	}
];

export const DashboardHelperPro: DashboardInterface[] = [
	{
		icons: <PersonalPreferencesSvg />,
		headTitle: 'Reports',
		subTitles: [
			{
				title: 'Profitability',
				route: cashFlowPerspective
			},
			{
				title: 'Working Capital',
				route: workingCapitalMetric
			},
			{
				title: 'Returns',
				route: financialReturns
			},
			{
				title: 'Funding',
				route: cashFundingMeters
			}
		]
	},
	{
		icons: <CompanySettingsSvg />,
		headTitle: 'Simulators',
		subTitles: [
			{
				title: 'Money for Growth',
				route: moneyForGrowth
			},
			{
				title: 'Money Multiplier for CEOs',
				route: moneyForCeos
			}
		]
	}
];
