19 lines
429 B
TypeScript
19 lines
429 B
TypeScript
import { redirect } from "next/navigation"
|
|
|
|
type PageProps = {
|
|
params: Promise<{
|
|
id: string
|
|
}>
|
|
}
|
|
|
|
export default async function AdminConversationDetailRedirect({
|
|
params,
|
|
}: PageProps) {
|
|
const { id } = await params
|
|
redirect(`/admin/conversations?conversationId=${encodeURIComponent(id)}`)
|
|
}
|
|
|
|
export const metadata = {
|
|
title: "Conversation Detail | Admin",
|
|
description: "Open a conversation in the inbox view",
|
|
}
|