mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 13:05:08 +09:00
pass title
This commit is contained in:
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%",
|
||||
|
||||
Reference in new issue
Block a user