mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-15 20:57:15 +00:00

Co-authored-by: Dexter Lee <dexter@acryl.io> Co-authored-by: Brian <brianwebtek@gmail.com> Co-authored-by: John Joyce <john@acryl.io> Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
20 lines
604 B
TypeScript
20 lines
604 B
TypeScript
import lookerLogo from '../../images/lookerlogo.png';
|
|
import supersetLogo from '../../images/supersetlogo.png';
|
|
import airflowLogo from '../../images/airflowlogo.png';
|
|
|
|
/**
|
|
* TODO: This is a temporary solution, until the backend can push logos for all data platform types.
|
|
*/
|
|
export function getLogoFromPlatform(platform: string) {
|
|
if (platform.toLowerCase() === 'looker') {
|
|
return lookerLogo;
|
|
}
|
|
if (platform.toLowerCase() === 'superset') {
|
|
return supersetLogo;
|
|
}
|
|
if (platform.toLowerCase() === 'airflow') {
|
|
return airflowLogo;
|
|
}
|
|
return undefined;
|
|
}
|