, keyof LinkProps>
+
interface Props {
title?: string
url?: string
showFullLink?: boolean
invert?: boolean
+ anchorProps?: AnchorProps
className?: string
}
const defaultProps = {
className: '',
showFullLink: false,
+ anchorProps: {} as AnchorProps,
invert: false,
}
@@ -42,12 +47,17 @@ const getTitle = (title: string, colors: BrowserColors) => (
)
-const getAddressInput = (url: string, showFullLink: boolean, colors: BrowserColors) => (
+const getAddressInput = (
+ url: string,
+ showFullLink: boolean,
+ colors: BrowserColors,
+ anchorProps: AnchorProps,
+) => (
-
+
{showFullLink ? url : getHostFromUrl(url)}