generated from PaulRBerg/foundry-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
5,870 additions
and
1,304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import Image from "next/image"; | ||
import { ChatUIProvider, ChatViewComponent } from "@pushprotocol/uiweb"; | ||
import closeIcon from "@/public/close.png"; | ||
import { WalletClient } from "viem"; | ||
import { viemSignerType } from "@pushprotocol/restapi"; | ||
|
||
export default function ChatModal({ | ||
chatId, | ||
walletClient, | ||
close, | ||
} : { | ||
chatId: string, | ||
walletClient: WalletClient | ||
close: () => void, | ||
}) { | ||
return ( | ||
<ChatUIProvider signer={walletClient as viemSignerType}> | ||
<div className="fixed left-0 right-0 top-0 bottom-0 backdrop-blur-sm bg-white/60 flex items-center justify-center p-16"> | ||
<ChatViewComponent | ||
chatId={chatId} | ||
limit={24} | ||
/> | ||
<div | ||
className="absolute right-3 top-3 inline-block p-2 cursor-pointer" | ||
onClick={close} | ||
> | ||
<Image src={closeIcon} alt="close" width={24} height={24} /> | ||
</div> | ||
</div> | ||
</ChatUIProvider> | ||
) | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.