From f99e0aba70efad0deb907d8e27f09fc9f527c8a4 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 17 Feb 2023 17:07:50 +0700
Subject: Refactor

---
 src/core/components/elements/Link/Link.jsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 src/core/components/elements/Link/Link.jsx

(limited to 'src/core/components/elements/Link/Link.jsx')

diff --git a/src/core/components/elements/Link/Link.jsx b/src/core/components/elements/Link/Link.jsx
new file mode 100644
index 00000000..a619164d
--- /dev/null
+++ b/src/core/components/elements/Link/Link.jsx
@@ -0,0 +1,17 @@
+import NextLink from "next/link"
+
+const Link = ({ children, ...props }) => {
+  return (
+    <NextLink 
+      {...props} 
+      scroll={false}
+      className={`block font-medium text-red_r-11 ${props?.className}`}
+    >
+      {children}
+    </NextLink>
+  )
+}
+
+Link.defaultProps = NextLink.defaultProps
+
+export default Link
\ No newline at end of file
-- 
cgit v1.2.3

