export type BlogPostType = 'news' | 'article' | 'blog'
export type BlogStatus = 'draft' | 'published' | 'archived'

export interface BlogAuthor {
  id: string
  firstName: string | null
  lastName: string | null
  email: string | null
}

export interface Blog {
  id: string
  title: string
  slug: string
  type: BlogPostType
  abstract: string
  status: BlogStatus
  categoryId: string | null
  categoryName: string
  tags: string[]
  titleImageUrl: string | null
  commentCount: number
  author: BlogAuthor | null
  publishedAt: string | null
  createdAt: string
  updatedAt: string
}

export interface BlogDetail extends Blog {
  mainTextHtml: string
  author: BlogAuthor | null
}

export const BLOG_TYPE_OPTIONS: { value: BlogPostType; label: string }[] = [
  { value: 'news', label: 'News' },
  { value: 'article', label: 'Article' },
  { value: 'blog', label: 'Blog' },
]
