mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-18 16:07:10 +00:00
* feat: v5 is in progress * feat: antdv5 is updated * fix: build is fixed * fix: default config is over written by custom one * chore: onchange handler is updated * chore: overflow is hidden in the layout * Update index.tsx * fix: import is fixed * chore: un used import is fixed * fix: dark mode is updated in service map * fix: config dropdown is updated * fix: logs types is updated * fix: copy clipboard notification is updated * chore: layout changes are updated * chore: colors is updated * chore: action width is updated Co-authored-by: Pranay Prateek <pranay@signoz.io> Co-authored-by: Vishal Sharma <makeavish786@gmail.com>
29 lines
870 B
TypeScript
29 lines
870 B
TypeScript
import { Typography } from 'antd';
|
|
import { useIsDarkMode } from 'hooks/useDarkMode';
|
|
import React from 'react';
|
|
import { Link } from 'react-router-dom';
|
|
|
|
import { DocCardContainer } from './styles';
|
|
import { TGetStartedContentDoc } from './types';
|
|
import UTMParams from './utmParams';
|
|
|
|
interface IDocCardProps {
|
|
text: TGetStartedContentDoc['title'];
|
|
icon: TGetStartedContentDoc['icon'];
|
|
url: TGetStartedContentDoc['url'];
|
|
}
|
|
function DocCard({ icon, text, url }: IDocCardProps): JSX.Element {
|
|
const isDarkMode = useIsDarkMode();
|
|
|
|
return (
|
|
<Link to={{ pathname: `${url}${UTMParams}` }} target="_blank">
|
|
<DocCardContainer isDarkMode={isDarkMode}>
|
|
<span style={{ color: isDarkMode ? '#ddd' : '#333' }}>{icon}</span>
|
|
<Typography.Text style={{ marginLeft: '0.5rem' }}>{text}</Typography.Text>
|
|
</DocCardContainer>
|
|
</Link>
|
|
);
|
|
}
|
|
|
|
export default DocCard;
|