import { getTestimoniosPanel, type TestimonioPanel } from '@/db/tenant-queries'; import { formatFecha } from '@/lib/funnel'; import { publicarTestimonio, ocultarTestimonio, eliminarTestimonio } from './actions'; export const dynamic = 'force-dynamic'; const ESTADO_BADGE: Record = { pendiente: { label: 'Pendiente', className: 'bg-amber-100 text-amber-700' }, publicado: { label: 'Publicado', className: 'bg-green-100 text-green-700' }, oculto: { label: 'Oculto', className: 'bg-gray-100 text-gray-500' }, }; function Estrellas({ rating }: { rating: number }) { return (
{[1, 2, 3, 4, 5].map((n) => ( ))}
); } export default async function OpinionesPage() { const testimonios = await getTestimoniosPanel(); return (

Opiniones

Las opiniones que te dejan tus clientes. Aprueba las que quieras mostrar en tu funnel; solo las publicadas aparecen en tu página.

{testimonios.length === 0 ? (
Aún no tienes opiniones. Solicítalas a tus clientes desde la ficha de un lead ganado.
) : ( )}
); }