/*
 * SPDX-FileCopyrightText: 2024 Kristóf Marussy
 *
 * SPDX-License-Identifier: MIT
 */

import React from 'react';
import type { Props } from '@theme/BlogListPage';
import BlogListPage from '@theme-original/BlogListPage';

import Landing from '@site/src/components/Landing';

export default function BlogListPageWrapper(props: Props) {
  if (props.metadata.permalink === '/') {
    return <Landing {...props} />;
  }
  return <BlogListPage {...props} />;
}
