mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-22 12:04:21 +08:00
23 lines
631 B
TypeScript
23 lines
631 B
TypeScript
import { Component, ContextType } from "preact";
|
|
import { GlobalCtx } from "./GlobalContext.tsx";
|
|
import { MdOutlinedTextField } from "../server/dmodule.ts";
|
|
|
|
type Props = {
|
|
show: boolean;
|
|
};
|
|
|
|
export default class CreateRootUser extends Component<Props> {
|
|
static contextType = GlobalCtx;
|
|
declare context: ContextType<typeof GlobalCtx>;
|
|
render() {
|
|
if (!MdOutlinedTextField.value) return null;
|
|
if (!this.props.show) return null;
|
|
const OutlinedTextField = MdOutlinedTextField.value;
|
|
return (
|
|
<div>
|
|
<OutlinedTextField />
|
|
</div>
|
|
);
|
|
}
|
|
}
|