2021-04-23 00:18:39 -07:00
|
|
|
import lookerLogo from '../../images/lookerlogo.png';
|
|
|
|
import supersetLogo from '../../images/supersetlogo.png';
|
|
|
|
import airflowLogo from '../../images/airflowlogo.png';
|
2021-02-23 12:45:42 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* TODO: This is a temporary solution, until the backend can push logos for all data platform types.
|
|
|
|
*/
|
|
|
|
export function getLogoFromPlatform(platform: string) {
|
2021-03-04 23:16:13 -08:00
|
|
|
if (platform.toLowerCase() === 'looker') {
|
2021-02-23 12:45:42 -08:00
|
|
|
return lookerLogo;
|
|
|
|
}
|
2021-04-22 00:11:54 -07:00
|
|
|
if (platform.toLowerCase() === 'superset') {
|
|
|
|
return supersetLogo;
|
|
|
|
}
|
2021-04-23 00:18:39 -07:00
|
|
|
if (platform.toLowerCase() === 'airflow') {
|
|
|
|
return airflowLogo;
|
|
|
|
}
|
2021-02-23 12:45:42 -08:00
|
|
|
return undefined;
|
|
|
|
}
|