2025-02-04 00:51:59 +08:00
|
|
|
export type TNews = {
|
|
|
|
|
title: string
|
|
|
|
|
description: string
|
|
|
|
|
type: 'hero' | 'grid'
|
2025-02-20 23:22:04 +07:00
|
|
|
items: Pick<
|
|
|
|
|
TNewsDetail,
|
|
|
|
|
'title' | 'content' | 'featured' | 'slug' | 'tags' | 'isPremium'
|
|
|
|
|
>[]
|
2025-02-20 07:01:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TNewsDetail = {
|
|
|
|
|
title: string
|
|
|
|
|
content: string
|
|
|
|
|
featured: string
|
|
|
|
|
author: string
|
|
|
|
|
date: Date
|
|
|
|
|
slug: string
|
2025-02-20 22:20:27 +07:00
|
|
|
tags?: Array<string>
|
2025-02-20 23:22:04 +07:00
|
|
|
isPremium?: boolean
|
2025-02-20 22:20:27 +07:00
|
|
|
categories?: Array<string>
|
2025-02-04 00:51:59 +08:00
|
|
|
}
|