import type { ChainModifiers, Entry, EntryFieldTypes, EntrySkeletonType, LocaleCode } from 'contentful'
import {BlogPostFields} from "./blogPost";
import {ContentImage} from "../lib/contentful/contentImage";

export interface AuthorFields {
    name: EntryFieldTypes.Symbol
    avatar: EntryFieldTypes.AssetLink
    expertId: EntryFieldTypes.AssetLink
}

export interface Author {
    name: string
    expertId: string
    avatar: ContentImage | null
}

export type AuthorSkeleton = EntrySkeletonType<AuthorFields, 'author'>
export type AuthorEntry<Modifiers extends ChainModifiers, Locales extends LocaleCode> = Entry<
    AuthorSkeleton,
    Modifiers,
    Locales
>