@ministryofjustice/probation-search-frontend
Version:
A shared UI component to search for probation cases from within your Express/Nunjucks application
10 lines (9 loc) • 333 B
TypeScript
import { Request } from 'express';
import { ProbationSearchResponse } from '../data/probationSearchClient';
export interface SuggestionLink {
text: string;
newQuery: string;
}
export default function getSuggestionLinks(response: {
suggestions?: ProbationSearchResponse['suggestions'];
}, req: Request): SuggestionLink[];