import { ArticleDetails } from '@/components/ArticleDetails' import { ArticleNavLinks } from '@/components/ArticleNavLinks' import { Mdx } from '@/components/Mdx' import { Sidebar } from '@/components/Sidebar' import { Article, ArticleLinks, SidebarContentList } from '@/types/content-types' import { getArticle, getArticleSource, getLinks } from '@/utils/content' import { getSidebarContentList } from '@/utils/getSidebarContentList' import { GetStaticProps } from 'next' import { MDXRemoteSerializeResult } from 'next-mdx-remote' import { useTheme } from 'next-themes' interface Props { article: Article links: ArticleLinks sidebar: SidebarContentList mdxSource: MDXRemoteSerializeResult } export default function ArticlePage({ mdxSource, links, sidebar, article }: Props) { const theme = useTheme() return (