import React, { FC, ReactNode } from 'react';
import css from './index.module.css';

export interface HomepageWrapperProps {
  children?: ReactNode;
  element?: ReactNode;
}

const HomepageWrapper: FC<HomepageWrapperProps> = ({ children, element }) => {
  return element ? (
    <>
      {element}
      <div className={css.relative}>{children}</div>
    </>
  ) : (
    <>{children}</>
  );
};

export default HomepageWrapper;
