teqo-backup/src/components/campaign/dashboard/CampaignDataFreshness.tsx
Francisco Ignácio Fontoura Solla 4806c417c8 Engineering Pass 3: consolidate patterns and lock them with guards.
Fold duplicated campanha access, loaders, list/filter/form shells, and scripts into shared modules; reorganize utilities by domain; stabilize e2e; and document prevention-first audit workflow so the same smells cannot creep back in.
2026-07-29 06:11:29 -03:00

15 lines
498 B
TypeScript

import { formatBahiaDateTimeLabel } from '@/lib/campaignTime'
import { cn } from '@/lib/utils'
/** Request-time aggregate stamp — absolute Bahia time on hover. */
export const CampaignDataFreshness = ({ asOf, className }: { asOf: Date; className?: string }) => {
const iso = asOf.toISOString()
return (
<p className={cn('text-xs text-muted-foreground', className)}>
<time dateTime={iso} title={formatBahiaDateTimeLabel(iso)}>
Atualizado agora
</time>
</p>
)
}