diff --git a/src/app/(campaign)/campanha/(app)/comunicacao/acervo/page.tsx b/src/app/(campaign)/campanha/(app)/comunicacao/acervo/page.tsx index 70837fe1..d172d148 100644 --- a/src/app/(campaign)/campanha/(app)/comunicacao/acervo/page.tsx +++ b/src/app/(campaign)/campanha/(app)/comunicacao/acervo/page.tsx @@ -3,6 +3,7 @@ import { ScissorsIcon, SearchIcon, SearchXIcon, VideoIcon } from 'lucide-react' import Link from 'next/link' import { redirect } from 'next/navigation' import { getPayload } from 'payload' +import type { ReactNode } from 'react' import { RecordingAcervoFilters } from '@/components/campaign/recording/RecordingAcervoFilters' import { RecordingResultList } from '@/components/campaign/recording/RecordingResultList' @@ -89,6 +90,50 @@ const AcervoHeader = ({ source }: { source: AcervoSource }) => ( ) +/** + * C216 — the results heading every source repeats: the theme ladder (exact + * term / theme / idle) and the hint line of `mode=tema`. The caller owns the + * right side (`controls`: the Câmara leaves the retry button bare, the other + * two wrap it with their sort select) and whether the row renders at all. + */ +const AcervoResultsHeading = ({ + themeMode, + themeActive, + themeUnavailable, + idleTitle, + subject, + controls, +}: { + themeMode: boolean + themeActive: boolean + themeUnavailable: boolean + idleTitle: string + subject: 'fala' | 'gravação' + controls: ReactNode +}) => ( +
+ {themeUnavailable + ? 'Comportamento atual do acervo.' + : themeActive + ? `Confira o indício em cada ${subject} antes de abrir.` + : 'Nenhum termo relacionado foi acrescentado; mostramos a busca literal.'} +
+ ) : null} +- {data.themeUnavailable - ? 'Comportamento atual do acervo.' - : themeActive - ? 'Confira o indício em cada gravação antes de abrir.' - : 'Nenhum termo relacionado foi acrescentado; mostramos a busca literal.'} -
- ) : null} -- {data.themeUnavailable - ? 'Comportamento atual do acervo.' - : themeActive - ? 'Confira o indício em cada fala antes de abrir.' - : 'Nenhum termo relacionado foi acrescentado; mostramos a busca literal.'} -
- ) : null} -- {data.themeUnavailable - ? 'Comportamento atual do acervo.' - : themeActive - ? 'Confira o indício em cada fala antes de abrir.' - : 'Nenhum termo relacionado foi acrescentado; mostramos a busca literal.'} -
-