admin/features/events/detail/admin-event-detail/AdminEventReviewsTab.tsx
alisaza e1eaf5eff5 feat: initial ghabilee-admin backoffice app
Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js
app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
2026-09-05 13:12:59 +03:30

30 lines
762 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use client'
import Button from '@/components/formElements/Button'
import EventReviewsPanel from '@/features/events/management/EventReviewsPanel'
interface AdminEventReviewsTabProps {
eventId: string
}
/** Read-only event reviews for admin detail — full body + host reply. */
const AdminEventReviewsTab = ({ eventId }: AdminEventReviewsTabProps) => (
<div className="flex flex-col gap-2">
<div className="flex justify-end">
<Button
size="sm"
to={`/reviews?filters[eventId]=${encodeURIComponent(eventId)}`}
variant="flat"
>
مشاهده در لیست کلی
</Button>
</div>
<EventReviewsPanel
eventId={eventId}
mode="admin"
/>
</div>
)
export default AdminEventReviewsTab