- Created a new About page (index.html) detailing the BotServer platform, its features, and technology stack. - Developed a Login page (login.html) with sign-in and sign-up functionality, including form validation and user feedback messages. - Removed the empty style.css file as it is no longer needed.
15 lines
248 B
TypeScript
15 lines
248 B
TypeScript
import { atom, useAtom } from "jotai"
|
|
|
|
import { Mail, mails } from "./data"
|
|
|
|
type Config = {
|
|
selected: Mail["id"] | null
|
|
}
|
|
|
|
const configAtom = atom<Config>({
|
|
selected: mails[0].id,
|
|
})
|
|
|
|
export function useMail() {
|
|
return useAtom(configAtom)
|
|
}
|