generated from prezly/theme-nextjs-bea
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypes.ts
43 lines (37 loc) · 986 Bytes
/
types.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import type { Story } from '@prezly/sdk';
export interface PaginationProps {
itemsTotal: number;
currentPage: number;
pageSize: number;
}
export type StoryWithImage = Story & Pick<Story.ExtraFields, 'thumbnail_image'>;
export interface BasePageProps {
translations: Record<string, any>;
isTrackingEnabled?: boolean;
}
export enum Font {
MULISH = 'mulish',
MERRIWEATHER = 'merriweather',
OPEN_SANS = 'open_sans',
PT_SERIF = 'pt_serif',
ROBOTO = 'roboto',
SOURCE_CODE_PRO = 'source_code_pro',
}
export interface ThemeSettingsApiResponse {
accent_color: string;
font: Font;
header_background_color: string;
header_link_color: string;
logo_size: string;
show_date: boolean;
show_subtitle: boolean;
}
export interface ThemeSettings {
accentColor: string;
font: Font;
headerBackgroundColor: string;
headerLinkColor: string;
logoSize: string;
showDate: boolean;
showSubtitle: boolean;
}