import React from 'react';
import { Alert } from 'antd';
import { LOOKER, LOOK_ML } from './constants';
const LOOKML_DOC_LINK = 'https://datahubproject.io/docs/generated/ingestion/sources/looker#module-lookml';
const LOOKER_DOC_LINK = 'https://datahubproject.io/docs/generated/ingestion/sources/looker#module-looker';
interface Props {
type: string;
}
export const LookerWarning = ({ type }: Props) => {
let link: React.ReactNode;
if (type === LOOKER) {
link = (
DataHub LookML Ingestion Source
);
} else if (type === LOOK_ML) {
link = (
DataHub Looker Ingestion Source
);
}
return (
To complete the Looker integration (including Looker views and lineage to the underlying warehouse
tables), you must also use the {link}.
>
}
/>
);
};