// src/lib/types/artikel.ts

export type ArtikelPost = {
    slug: string
    title: string
    publishedAt: string
    excerpt?: string
    featuredImage?: { url: string; alt?: string } | null
}

export type ArtikelPostFull = ArtikelPost & {
    content: { root: { children: any[] } }
    author?: { firstName?: string; lastName?: string }
    references?: {
        source: {
            id: string
            slug: string
            displayTitle: string
            title: string
            authors?: { firstName?: string; lastName?: string }[]
            year?: number
            type: string
            publisher?: string
            place?: string
            journal?: string
            volume?: string
            issue?: string
            pages?: string
            doi?: string
            institution?: string
            thesisType?: string
            series?: string
            seriesNumber?: string
            bookTitle?: string
            archiveCollection?: string
            externalUrl?: string
            accessed?: string
        }
        pages?: string
        note?: string
    }[]
}