From a4606eb9f3619bb4077daf0ae3fc59f67a663676 Mon Sep 17 00:00:00 2001 From: decamel Date: Wed, 27 Jul 2022 18:46:14 +0300 Subject: [PATCH] Link component fully covered --- src/components/typography/Link.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/components/typography/Link.tsx diff --git a/src/components/typography/Link.tsx b/src/components/typography/Link.tsx new file mode 100644 index 0000000..15a3eb8 --- /dev/null +++ b/src/components/typography/Link.tsx @@ -0,0 +1,21 @@ +import React from "react"; + +type Props = { + href?: string; + children: React.ReactNode; + disabled?: boolean; + className?: string; +} & Omit, "">; + +export default function Link({ href, children, disabled, ...props }: Props) { + return ( + // eslint-disable-next-line jsx-a11y/anchor-is-valid + + {children} + + ); +}