83d9a1f3e2
* Add post subtitle * Add "Post" badge to post card * Move post tab to overview tab, refactor components * Fix styling nits.
22 lines
404 B
TypeScript
22 lines
404 B
TypeScript
import { JSONContent } from '@tiptap/core'
|
|
|
|
export type Post = {
|
|
id: string
|
|
title: string
|
|
subtitle: string
|
|
content: JSONContent
|
|
creatorId: string // User id
|
|
createdTime: number
|
|
slug: string
|
|
}
|
|
|
|
export type DateDoc = Post & {
|
|
bounty: number
|
|
birthday: number
|
|
type: 'date-doc'
|
|
contractSlug: string
|
|
}
|
|
|
|
export const MAX_POST_TITLE_LENGTH = 480
|
|
export const MAX_POST_SUBTITLE_LENGTH = 480
|