diff --git a/client/src/components/generic/ExecImage/ExecImage.story.tsx b/client/src/components/generic/ExecImage/ExecImage.story.tsx new file mode 100644 index 000000000..995c1276a --- /dev/null +++ b/client/src/components/generic/ExecImage/ExecImage.story.tsx @@ -0,0 +1,23 @@ +import React from "react" +import type { Meta, StoryObj } from "@storybook/react" +import ExecImage, { ExecImageProps } from "./ExecImage" + +const meta: Meta = { + component: ExecImage, + title: "Components/generic/ExecImage" +} + +type Story = StoryObj + +export default meta + +export const DefaultExecImage: Story = (args: ExecImageProps) => ( + +) + +DefaultExecImage.args = { + src: "https://static01.nyt.com/images/2022/12/30/multimedia/30soccer-ronaldo-1-76fd/30soccer-ronaldo-1-76fd-mediumSquareAt3X.jpg", + alt: "Placeholder Image", + title: "Admin suii", + name: "Ronaldo" +} diff --git a/client/src/components/generic/ExecImage/ExecImage.tsx b/client/src/components/generic/ExecImage/ExecImage.tsx new file mode 100644 index 000000000..f62b97a57 --- /dev/null +++ b/client/src/components/generic/ExecImage/ExecImage.tsx @@ -0,0 +1,32 @@ +import React from "react" +import Image from "next/image" + +export interface ExecImageProps { + src: string + alt: string + title: string + name: string +} + +const ExecImage: React.FC = ({ src, alt, title, name }) => { + return ( +
+ {alt} +
+
+

+ {title} +

+

{name}

+
+
+ ) +} + +export default ExecImage