Chat popout
This commit is contained in:
16
src/pages/chat-popout.tsx
Normal file
16
src/pages/chat-popout.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import "./chat-popout.css";
|
||||
import { LiveChat } from "element/live-chat";
|
||||
import { useParams } from "react-router-dom";
|
||||
import { parseNostrLink } from "@snort/system";
|
||||
|
||||
export function ChatPopout() {
|
||||
const params = useParams();
|
||||
const link = parseNostrLink(params.id!);
|
||||
|
||||
return <div className="popout-chat">
|
||||
<LiveChat link={link} options={{
|
||||
canWrite: false,
|
||||
showHeader: false
|
||||
}} />
|
||||
</div>
|
||||
}
|
Reference in New Issue
Block a user