/**
 * Stable key for the main blog page CMS. Use a different `entityKey` in `BlogPageLocale` for more sections later.
 * Must match the value used in `/api/admin/blog-page`.
 */
export const BLOG_PAGE_ENTITY_KEY = "blog"

/** Locales supported for the blog page CMS. Add entries here and in DB when adding a new language. */
export const BLOG_PAGE_LOCALE_CODES = ["en", "tr", "ar"] as const

export type BlogPageLocaleCode = (typeof BLOG_PAGE_LOCALE_CODES)[number]

export function isBlogPageLocaleCode(s: string): s is BlogPageLocaleCode {
  return (BLOG_PAGE_LOCALE_CODES as readonly string[]).includes(s)
}
