diff --git a/src/components/CreateConnectionModal.tsx b/src/components/CreateConnectionModal.tsx
index 2d61872..e4bb8a4 100644
--- a/src/components/CreateConnectionModal.tsx
+++ b/src/components/CreateConnectionModal.tsx
@@ -4,13 +4,14 @@ import { toast } from "react-hot-toast";
import TextareaAutosize from "react-textarea-autosize";
import { useConnectionStore } from "@/store";
import { Connection, Engine, ResponseObject, SSLOptions } from "@/types";
-import Select from "./kit/Select";
+import Radio from "./kit/Radio";
import TextField from "./kit/TextField";
import Modal from "./kit/Modal";
import Icon from "./Icon";
import DataStorageBanner from "./DataStorageBanner";
import ActionConfirmModal from "./ActionConfirmModal";
import { useTranslation } from "react-i18next";
+import EngineIcon from "./EngineIcon";
interface Props {
connection?: Connection;
@@ -43,6 +44,29 @@ const defaultPort = {
[Engine.TiDBServerless]: "4000",
};
+const engines = [
+ {
+ type: Engine.MySQL,
+ name: "MySQL",
+ defualtPort: "3306",
+ },
+ {
+ type: Engine.PostgreSQL,
+ name: "PostgreSQL",
+ defualtPort: "5432",
+ },
+ {
+ type: Engine.MSSQL,
+ name: "SQL Server",
+ defualtPort: "1433",
+ },
+ {
+ type: Engine.TiDBServerless,
+ name: "TiDB Serverless",
+ defualtPort: "4000",
+ },
+];
+
const defaultConnection: Connection = {
id: "",
title: "",
@@ -216,17 +240,24 @@ const CreateConnectionModal = (props: Props) => {