Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
})
: undefined;
return (
<div>
}>{props.item.name}}
itemActivity={{'12'}}>{props.item.activity}}
foreground={
<span>
{renderFolderCoverWithLayout(folderCover, {
children: imageSize ? (
<img src="{`//placehold.it/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}">
) : null
})}
</span>
}
/>
</div>
);
};
/>
);
const { contentSize } = getFolderCoverLayout(folderCover);
const imageSize = props.originalImageSize
? fitContentToBounds({
contentSize: props.originalImageSize,
boundsSize: contentSize,
mode: 'contain'
})
: undefined;
return (
<div>
}>{props.item.name}}
itemActivity={{'12'}}>{props.item.activity}}
foreground={
<span>
{renderFolderCoverWithLayout(folderCover, {
children: imageSize ? (
<img src="{`//placehold.it/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}"></span></div>
className={css(TileExampleStyles.tile, {
[TileExampleStyles.largeTile]: props.size === 'large',
[TileExampleStyles.smallTile]: props.size === 'small'
})}
>
}>{props.item.name}}
itemActivity={{'12'}}>{props.item.activity}}
foreground={
<span>
{renderFolderCoverWithLayout(folderCover, {
children: imageSize ? (
<img src="{`//placehold.it/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}">
) : null
})}
</span>
}
/>
);
};