datahub/datahub-web-react/src/app/search/AnalyticsLink.tsx
John Joyce 29832e5385
feat(Product Analytics): Introducing In-App Analytics Beta (#2499)
Co-authored-by: Harshal Sheth <harshal@acryl.io>
Co-authored-by: Dexter Lee <dexter@acryl.io>
Co-authored-by: Gabe Lyons <itsgabelyons@gmail.com>
2021-05-11 15:41:42 -07:00

26 lines
628 B
TypeScript

import * as React from 'react';
import { Typography } from 'antd';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
const StyledAnalyticsLink = styled(Typography.Text)`
display: flex;
margin-right: 20px;
text-decoration: underline;
&& {
font-size: 14px;
color: ${(props) => props.theme.styles['layout-header-color']};
}
&&:hover {
color: #1890ff;
}
`;
export default function AnalyticsLink() {
return (
<Link to="/analytics">
<StyledAnalyticsLink strong>Analytics [beta]</StyledAnalyticsLink>
</Link>
);
}