Add select for git servers when creating site

This commit is contained in:
2026-05-03 19:36:24 +02:00
parent a68368df3c
commit c3f4c95150
6 changed files with 253 additions and 187 deletions
@@ -0,0 +1,20 @@
import { Code2 } from 'lucide-react';
import type { GitServerType } from '../api/types/gitserver';
import { GiteaIcon } from './icons/GiteaIcon';
import { GitHubIcon } from './icons/GitHubIcon';
import { GitLabIcon } from './icons/GitLabIcon';
const GitServerTypeIcon = ({ type, size = 32 }: { type: GitServerType; size?: number }) => {
switch (type) {
case 'github':
return <GitHubIcon size={size} />;
case 'gitlab':
return <GitLabIcon size={size} />;
case 'gitea':
return <GiteaIcon size={size} />;
default:
return <Code2 />;
}
};
export default GitServerTypeIcon;