/**
 * Original file: https://github.com/facebook/docusaurus/blob/main/packages/docusaurus-theme-classic/src/theme/BlogLayout/index.tsx
 * Copyright (c) Facebook, Inc. and its affiliates under the MIT license.
 *
 * Modified by David Garcia for Finboot.
 * 
 * Modifications:
 * - Removes the sidebar from the BlogLayout.
 */

import React from 'react';

import type { Props} from '@theme/BlogLayout';
import Layout from '@theme/Layout';

/* Override the default blog layout */
export default function BlogLayout(props: Props) {
  const {toc, children, ...layoutProps} = props;
  return (
    <Layout {...layoutProps}>
      <div className="container blogPage margin-vert--lg">
        <div className="row">
          <main
            className="col"
            itemScope
            itemType="http://schema.org/Blog">
            {children}
          </main>
          {toc && <div className="col col--2">{toc}</div>}
        </div>
      </div>
    </Layout>
  );
}
