@logicflow/dumi-theme-simple
Version:
Simple website theme based on dumi2.
22 lines (21 loc) • 455 B
TypeScript
import React from 'react';
export type ITextSegment = {
text: string;
highlighted?: boolean;
};
export type ISearchResult = {
/**
* 搜索结果的主题,显示在最左边,一般是页面的标题。
*/
subject: string;
tilte: ITextSegment[];
description?: ITextSegment[];
link: string;
};
/**
* 展示搜索结果
* @returns
*/
export declare const SearchResult: React.FC<{
results: ISearchResult[];
}>;