pass title

This commit is contained in:
Sara Vieira committed 2022-07-23 01:00:21 +02:00
1 parent 3d63072b04
commit 338da62f4b
1 file changed
+6 -1
@@ -27,10 +27,15 @@ const useImageWithFallbaack = ({ path }: { path: string }) => {
};
};
export const AssetManagerImage = ({ asset: { path } }: { asset: Asset }) => {
export const AssetManagerImage = ({
asset: { path, alt },
}: {
asset: Asset;
}) => {
const { imageSrc } = useImageWithFallbaack({ path });
return (
<Box
title={alt || ""}
css={{
aspectRatio: "1/1",
width: "100%",