mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
24 lines
567 B
TypeScript
24 lines
567 B
TypeScript
import { useState } from 'react';
|
|
import { Dialog, DialogTitle, DialogDescription } from '~/components/ui/Dialog';
|
|
import { Register } from '~/components/auth/Register';
|
|
|
|
interface RegisterDialogProps {
|
|
isOpen: boolean;
|
|
onClose: () => void;
|
|
}
|
|
|
|
export function RegisterDialog({ isOpen, onClose }: RegisterDialogProps) {
|
|
return (
|
|
<Dialog onClose={onClose}>
|
|
{isOpen && (
|
|
<>
|
|
<DialogTitle>注册</DialogTitle>
|
|
<DialogDescription>
|
|
<Register />
|
|
</DialogDescription>
|
|
</>
|
|
)}
|
|
</Dialog>
|
|
);
|
|
}
|