initial extension

This commit is contained in:
n4ze3m
2023-04-09 23:28:52 +05:30
parent 012035ecbe
commit a3ebeb8507
20 changed files with 12113 additions and 0 deletions

12
extension/routes/home.tsx Normal file
View File

@@ -0,0 +1,12 @@
import React from "react"
import { useStorage } from "@plasmohq/storage/hook"
import Chat from "./chat"
import Login from "./login"
export default function Home() {
const [token] = useStorage("pa-token", null)
return <>{token ? <Chat /> : <Login />}</>
}