12 lines
239 B
TypeScript
12 lines
239 B
TypeScript
import React from 'react';
|
|
|
|
import { DocSearchHit } from './types';
|
|
|
|
interface HitProps {
|
|
hit: DocSearchHit;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export function Hit({ hit, children }: HitProps) {
|
|
return <a href={hit.url}>{children}</a>;
|
|
}
|