(query: string, ...fields: (string | undefined | null)[])
| 47 | resolveSessionTitle(session, (key, options) => i18nService.t(key, options)); |
| 48 | |
| 49 | const matchesQuery = (query: string, ...fields: (string | undefined | null)[]): boolean => { |
| 50 | const q = query.toLowerCase(); |
| 51 | return fields.some(f => f && f.toLowerCase().includes(q)); |
| 52 | }; |
| 53 | |
| 54 | const NavSearchDialog: React.FC<NavSearchDialogProps> = ({ open, onClose }) => { |
| 55 | const { t } = useI18n('common'); |
no test coverage detected