Pixel/links development. New validations folder. More refactoring.
This commit is contained in:
1 parent
88639dfe83
commit
247e14646b
136 files changed
+1395
-516
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import Link from 'next/link';
|
||||
import { Icon, Row, Text } from '@umami/react-zen';
|
||||
import { ExternalLink as LinkIcon } from '@/components/icons';
|
||||
|
||||
export function ExternalLink({ href, children, ...props }: Icon) {
|
||||
return (
|
||||
<Row alignItems="center" overflow="hidden" gap>
|
||||
<Text title={href} truncate>
|
||||
<Link {...props} href={href} target="_blank">
|
||||
{children}
|
||||
</Link>
|
||||
</Text>
|
||||
<Icon size="sm" strokeColor="muted">
|
||||
<LinkIcon />
|
||||
</Icon>
|
||||
</Row>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user