430644448a
This PR was created by [GitStart](https://gitstart.com/) to address the requirements from this ticket: [TWNTY-7535](https://clients.gitstart.com/twenty/5449/tickets/TWNTY-7535). --- ### Description. Migrate link components to `twenty-ui` \ \ Fixes #7535 --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: gitstart-twenty <140154534+gitstart-twenty@users.noreply.github.com> Co-authored-by: Charles Bochet <charles@twenty.com>
20 lines
554 B
TypeScript
20 lines
554 B
TypeScript
import { useTheme } from '@emotion/react';
|
|
import { IconBrandGithub } from '@ui/display';
|
|
import { ActionLink } from '@ui/navigation/link/components/ActionLink';
|
|
import { GITHUB_LINK } from '../constants/GithubLink';
|
|
|
|
interface GithubVersionLinkProps {
|
|
version: string;
|
|
}
|
|
|
|
export const GithubVersionLink = ({ version }: GithubVersionLinkProps) => {
|
|
const theme = useTheme();
|
|
|
|
return (
|
|
<ActionLink href={GITHUB_LINK} target="_blank" rel="noreferrer">
|
|
<IconBrandGithub size={theme.icon.size.md} />
|
|
{version}
|
|
</ActionLink>
|
|
);
|
|
};
|