mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-16 11:33:07 +00:00
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.
15 lines
498 B
TypeScript
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>
|
|
)
|
|
}
|