import { type Article } from 'src/pages/dashboard/HuLibraries/types';

import { ContentWrapper } from '../../../../components/ContentWrapper';
import { ArticleBreadcrumbs } from '../../ArticleBreadcrumbs';

import { ArticleEditAttachments } from './ArticleEditAttachments';
import { ArticleEditBody } from './ArticleEditBody';
import { ArticleEditCover } from './ArticleEditCover';
import { ArticleEditTitle } from './ArticleEditTitle';
import { ArticleInactiveAlert } from './ArticleInactiveAlert';

type ArticleEditContentProps = {
  article: Article;
};

export const ArticleEditContent = ({ article }: ArticleEditContentProps) => {
  return (
    <ContentWrapper>
      <ArticleBreadcrumbs />
      <ArticleInactiveAlert article={article} />
      <ArticleEditCover />
      <ArticleEditTitle />
      <ArticleEditBody />
      <ArticleEditAttachments article={article} />
    </ContentWrapper>
  );
};
