From aff39583c9c63717cbf0a761443dddfdb609861a Mon Sep 17 00:00:00 2001
From: Andy Leuchtturm <d-leuchtturm@gmx.net>
Date: Thu, 28 Sep 2023 12:49:17 +0200
Subject: [PATCH] implement getImgPath

---
 components/it-standards/LifecyclePicture.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/components/it-standards/LifecyclePicture.tsx b/components/it-standards/LifecyclePicture.tsx
index 095e490..aca7810 100644
--- a/components/it-standards/LifecyclePicture.tsx
+++ b/components/it-standards/LifecyclePicture.tsx
@@ -1,5 +1,8 @@
 import { Tag } from 'types/content/'
 import Image from 'next/image'
+import useImgPath from 'shared/use-img-path'
+
+const { getImgPath } = useImgPath()
 
 export default function LifecyclePicture(lifecyclephase:Tag) {
     /* beim tag 'status' soll das zugehĂśrige Lebenszyklus-Bild ausgegeben werden */
@@ -8,7 +11,7 @@ export default function LifecyclePicture(lifecyclephase:Tag) {
         <div className="border border-gray-300 rounded-lg overflow-hidden py-2">
             {/* Die Next.js Image-Komponente verwendet das "src" Attribut */}
             <Image
-                src={imagePath}
+                src={getImgPath(imagePath)}
                 alt={`Bild fĂźr Tag ${lifecyclephase.value}`}
                 width={500} // Breite des Bildes
                 height={0} // HĂśhe des Bildes
-- 
GitLab