Extract admin dashboard from ghabilee-frontend2 into a dedicated Next.js app for backoffice.ghabilee.ir (no SEO indexing / Clarity).
30 lines
762 B
TypeScript
30 lines
762 B
TypeScript
'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
|