import React from 'react'; import EmptyListCTA from 'app/core/components/EmptyListCTA/EmptyListCTA'; import { Props } from './DataSourceCache'; export const CacheCTA = (props: Props) => { const { enableDataSourceCache, pageId } = props; return ( { enableDataSourceCache(pageId); }} proTip="Enabling caching can reduce the amount of redundant requests sent to the data source." proTipLink="https://grafana.com/docs/grafana/latest/enterprise/query-caching/" proTipLinkTitle="Learn more" /> ); };