import { Entry } from '@keystatic/core/reader'
import keystaticConfig from '~/keystatic.config'

export type Author = Entry<(typeof keystaticConfig.collections)['authors']>
export type Tag = Entry<(typeof keystaticConfig.collections)['tags']>
export type AWQArticle = Entry<
  (typeof keystaticConfig.collections)['awq_posts']
>
export type AWQTalent = Entry<
  (typeof keystaticConfig.collections)['awq_talents']
>
export type MetaArticle = Entry<
  (typeof keystaticConfig.collections)['meta_posts']
>

export type AWQContent = AWQArticle | AWQTalent
export type MetaContent = MetaArticle

export type ArticleContent = AWQContent | MetaContent
