Types
type Author = {
id: string
email: string
firstName: string
lastName: string
avatarUrl?: string
company?: string
}
type Brick<T = {}> = React.FC<T> & { schema: IBlockType }
type Bricks = { [key: string]: Brick<any> }
type Page = {
id: string
type: string
name: string
slug: string
meta: IMeta
content: IContentBlock[]
authorId?: string
author: Author
invalidBlocksTypes?: string[]
status: PageStatus
isLocked: boolean
tags: string[]
createdAt: string
publishedAt?: string
}
type PageFromList = Omit<Page, 'content'>
export type PagesFromListWithPagination = {
items: PageFromList[]
pagination: {
page: number
pageSize: number
totalItems: number
totalPages: number
}
}
type Props = { [key: string]: any }
type RenderLocalLink = ({
href,
target,
className,
activeClassName,
isAdmin,
children,
}: {
href: string
target?: string
className?: string
activeClassName?: string
isAdmin?: boolean
children: React.ReactNode
}) => React.ReactElement
import { Value } from 'slate'
type TextValue = Value