import React, { FunctionComponent } from 'react';
import { IDashboardProps } from './types.d';

export const Dashboard: FunctionComponent<IDashboardProps> = ({ children, title }) => {
  return (
    <div className="dashboard">
      {title !== undefined ? <div className="dashboard__start">{title}</div> : <></>}
      <div className="dashboard__container">{children}</div>
    </div>
  );
};
