refactor: move codes into src folder

This commit is contained in:
steven
2023-03-31 16:12:09 +08:00
parent 483e750bc5
commit 861a22f13d
57 changed files with 44 additions and 8 deletions

View File

@ -0,0 +1,21 @@
import { Engine } from "@/types";
import Icon from "./Icon";
interface Props {
className: string;
engine: Engine;
}
const EngineIcon = (props: Props) => {
const { className, engine } = props;
if (engine === Engine.MySQL) {
return <Icon.DiMysql className={className} />;
} else if (engine === Engine.PostgreSQL) {
return <Icon.DiPostgresql className={className} />;
} else {
return <Icon.DiDatabase className={className} />;
}
};
export default EngineIcon;