From 0d30b9573ba35ad24d78b92743ad0dda8a19b7af Mon Sep 17 00:00:00 2001
From: Michal Sapka <michal@sapka.me>
Date: Sat, 10 Sep 2022 23:55:02 +0200
Subject: feat: resize logo

---
 lib/next_image.tsx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 lib/next_image.tsx

(limited to 'lib/next_image.tsx')

diff --git a/lib/next_image.tsx b/lib/next_image.tsx
new file mode 100644
index 00000000..6fb25bfd
--- /dev/null
+++ b/lib/next_image.tsx
@@ -0,0 +1,19 @@
+import NextImage from "next/image";
+import { chakra } from "@chakra-ui/react";
+
+const Image = chakra(NextImage, {
+  baseStyle: { maxH: 120, maxW: 120 },
+  shouldForwardProp: (prop) =>
+    [
+      "width",
+      "height",
+      "src",
+      "alt",
+      "quality",
+      "placeholder",
+      "blurDataURL",
+      "loader ",
+    ].includes(prop),
+});
+
+export default Image
-- 
cgit v1.2.3

