import React from "react"
import ReactDOM from "react-dom"
import * as antd from "antd"
import { Icons } from "components/Icons"
import config from "config"
import "./index.less"
export class AboutCard extends React.Component {
state = {
visible: true,
}
onClose = () => {
this.setState({ visible: false })
if (typeof this.props.onClose === "function") {
this.props.onClose()
}
}
render() {
const eviteNamespace = window.__evite
const appConfig = config.app ?? {}
const isDevMode = eviteNamespace.env.NODE_ENV !== "production"
return (
{appConfig.siteName}
v{eviteNamespace.projectVersion}
eVite v{eviteNamespace.eviteVersion}
v{eviteNamespace.versions.node}
{isDevMode ? : }
{isDevMode ? "development" : "stable"}
)
}
}
export function openModal() {
const component = document.createElement("div")
document.body.appendChild(component)
ReactDOM.render(, component)
}