mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
483 B
TypeScript
16 lines
483 B
TypeScript
import { NotFound } from '@/components/NotFound';
|
|
import { ConversePanel } from '@/components/Panel/personal/ConversePanel';
|
|
import React from 'react';
|
|
import { useParams } from 'react-router';
|
|
|
|
export const PersonalConverse: React.FC = React.memo(() => {
|
|
const params = useParams<{ converseId: string }>();
|
|
|
|
if (!params.converseId) {
|
|
return <NotFound />;
|
|
}
|
|
|
|
return <ConversePanel converseId={params.converseId} />;
|
|
});
|
|
PersonalConverse.displayName = 'PersonalConverse';
|