From 68614ebbb41c3a5a3d58231fefe21ce61f48884d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Thu, 7 Jan 2021 14:57:42 +0900 Subject: [PATCH] feat: added Label --- components/Labal.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 components/Labal.tsx diff --git a/components/Labal.tsx b/components/Labal.tsx new file mode 100644 index 0000000..b424e01 --- /dev/null +++ b/components/Labal.tsx @@ -0,0 +1,15 @@ +import Link from 'next/link' + +const Label = ({ href, text }:LabelProps):JSX.Element => { + return href ? + {text} + : {text} +} + +interface LabelProps { + href?: string + text: string + icon?: string +} + +export default Label \ No newline at end of file