1
0
Fork 0
docsearch/packages/docsearch-react/src/Hit.tsx
renovate[bot] 10c5b2ea14
chore(deps): update lint dependency (#1120)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Samuel Bodin <1637651+bodinsamuel@users.noreply.github.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
2021-11-02 12:06:22 +01:00

12 lines
301 B
TypeScript

import React from 'react';
import type { InternalDocSearchHit, StoredDocSearchHit } from './types';
interface HitProps {
hit: InternalDocSearchHit | StoredDocSearchHit;
children: React.ReactNode;
}
export function Hit({ hit, children }: HitProps) {
return <a href={hit.url}>{children}</a>;
}