import React, { FC, ReactNode, ReactType, Fragment } from 'react'; import Layout from '../../components/Layout'; import Content from '../../components/Content'; import Button from '../../blocks/Button'; import css from './index.module.css'; import { AccountInformationProps } from '../../components/AccountInformation'; import { ServiceCallsInformationProps } from '../../components/ServiceCallsInformation'; import { MilaGridColumn, MilaGridVoid } from '../../index'; export interface AccountPageProps { title: string; children?: ReactNode; logoutLabel: string; personalInformationLabel: string; serviceCallsLabel: string; logout: () => void; AccountInformation?: ReactType; AccountInformationProps?: AccountInformationProps; ServiceCallsInformation?: ReactType; ServiceCallsInformationProps?: ServiceCallsInformationProps; } const AccountPage: FC = ({ title, logoutLabel, personalInformationLabel, logout, children, AccountInformation, AccountInformationProps = {}, ServiceCallsInformation, ServiceCallsInformationProps = {}, serviceCallsLabel, }) => ( {title && (

{title}

)}
{AccountInformation && (

{personalInformationLabel}

)} {ServiceCallsInformation && (

{serviceCallsLabel}

)}
{children}
); export default AccountPage;