Add select for git servers when creating site
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user