31 lines
562 B
TypeScript
31 lines
562 B
TypeScript
export interface IDynamicContent {
|
|
type: keyof IDynamicContentItem;
|
|
data: string[] | string | IContentImage | IContentData;
|
|
}
|
|
|
|
export interface IDynamicContentItem {
|
|
bullet?: string[];
|
|
numberList?: string[];
|
|
image?: IContentImage;
|
|
title?: string;
|
|
content?: IContentData;
|
|
}
|
|
|
|
export interface IContentImage {
|
|
src: string;
|
|
alt: string;
|
|
title?: string;
|
|
thumbTitle?: string;
|
|
}
|
|
|
|
export interface IContentData {
|
|
links?: IContentDataLink[];
|
|
data: string;
|
|
}
|
|
|
|
export interface IContentDataLink {
|
|
key: string;
|
|
link: string;
|
|
label: string;
|
|
}
|