diff --git a/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/_components/AddLogo.tsx b/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/_components/AddLogo.tsx new file mode 100644 index 000000000..77a457a6b --- /dev/null +++ b/src/app/dashboard/(admin)/admin/email/edit-in-buit-templates/_components/AddLogo.tsx @@ -0,0 +1,49 @@ +"use client"; + +import Image from "next/image"; +import React, { useState } from "react"; + +const AddLogo: React.FC = () => { + const [selectedImage, setSelectedImage] = useState< + string | ArrayBuffer | undefined + >(); + + const handleImageChange = (event: React.ChangeEvent) => { + const file = event.target.files?.[0]; + if (file) { + const reader = new FileReader(); + reader.onloadend = () => { + setSelectedImage(reader.result ?? undefined); + }; + reader.readAsDataURL(file); + } + }; + + return ( +
+ +
+ ); +}; + +export default AddLogo;