import { getDatasourceType } from './getDatasourceType';
export var canRenderDatasource = function canRenderDatasource(datasourceId) {
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  var datasourceType = getDatasourceType(datasourceId);
  switch (datasourceType) {
    case 'jira':
    case 'assets':
      return true;
    default:
      return defaultValue;
  }
};
// eslint-disable-next-line @atlaskit/editor/no-re-export
export { getDatasourceType } from './getDatasourceType';