diff --git a/src/components/Icon/index.tsx b/src/components/Icon/index.tsx
index 719fb9b..7ed8c18 100644
--- a/src/components/Icon/index.tsx
+++ b/src/components/Icon/index.tsx
@@ -1,12 +1,19 @@
+import styled from "@emotion/styled";
import { LucideProps } from "lucide-react";
import dynamicIconImports from "lucide-react/dynamicIconImports";
import dynamic from "next/dynamic";
+const Loader = styled.span({
+ display: "inline-block",
+});
+
export interface IconProps extends LucideProps {
name: keyof typeof dynamicIconImports;
}
-export default function Icon({ name, ...props }: IconProps) {
- const LucideIcon = dynamic(dynamicIconImports[name]);
- return ;
+export default function Icon({ name, size = 24, ...props }: IconProps) {
+ const LucideIcon = dynamic(dynamicIconImports[name], {
+ loading: () => ,
+ });
+ return ;
}