mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-02 05:05:12 +09:00
19 lines
469 B
JavaScript
19 lines
469 B
JavaScript
import {
|
|
SiMysql, SiMariadb, SiPostgresql, SiSqlite, SiMongodb, SiRedis, SiDocker,
|
|
} from 'react-icons/si';
|
|
|
|
// engine key -> brand icon component. Keys match ENGINE_META / node.engine.
|
|
export const ENGINE_ICONS = {
|
|
mysql: SiMysql,
|
|
mariadb: SiMariadb,
|
|
postgresql: SiPostgresql,
|
|
sqlite: SiSqlite,
|
|
mongodb: SiMongodb,
|
|
redis: SiRedis,
|
|
docker: SiDocker,
|
|
};
|
|
|
|
export function hasBrandIcon(engine) {
|
|
return Boolean(ENGINE_ICONS[engine]);
|
|
}
|