29 | {/* biome-ignore lint/a11y/useValidAnchor:
*/}
30 |
31 | {text}
32 |
33 | {isDown === true ? : }
34 |
35 | );
36 | };
37 | export default DropdownLink;
38 |
--------------------------------------------------------------------------------
/src/renderer/Generics/redesign/Link/ExternalLink.tsx:
--------------------------------------------------------------------------------
1 | import { Icon } from '../Icon/Icon';
2 | import { blockContainer, inlineContainer, linkText } from './externalLink.css';
3 |
4 | // todo: variants for downloads or internal links
5 | export interface ExternalLinkProps {
6 | /**
7 | * The link url
8 | */
9 | url: string;
10 | /**
11 | * The link text
12 | */
13 | text?: string;
14 | /**
15 | * Inline the link
16 | */
17 | inline?: boolean;
18 | /**
19 | * Hide the external link icon
20 | */
21 | hideIcon?: boolean;
22 | }
23 |
24 | const ExternalLink = ({ url, text, inline, hideIcon }: ExternalLinkProps) => {
25 | const classContainer = inline ? inlineContainer : blockContainer;
26 | return (
27 |