mirror of
https://github.com/imezx/Warp.git
synced 2025-04-25 15:40:02 +00:00
14 lines
445 B
TypeScript
14 lines
445 B
TypeScript
/// <reference types="react" />
|
|
import type { StoredDocSearchHit } from './types';
|
|
interface SnippetProps<TItem> {
|
|
hit: TItem;
|
|
attribute: string;
|
|
tagName?: string;
|
|
[prop: string]: unknown;
|
|
}
|
|
export declare function Snippet<TItem extends StoredDocSearchHit>({ hit, attribute, tagName, ...rest }: SnippetProps<TItem>): import("react").DOMElement<{
|
|
dangerouslySetInnerHTML: {
|
|
__html: any;
|
|
};
|
|
}, Element>;
|
|
export {};
|