Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
,
]}
>
{props.item.activity}
}
background={
<span> // Placeholder content
}
hideBackground={!props.showBackground}
showBackgroundFrame={true}
/>
);
const { backgroundSize } = getTileLayout(tile);
const imageSize = fitContentToBounds({
contentSize: props.originalImageSize,
boundsSize: backgroundSize || { width: 0, height: 0 },
mode: 'cover'
});
return (
<div style="{{"></div></span>
): JSX.Element => {
const tile = (
}>{props.item.name}}
itemActivity={{'12'}}>{props.item.activity}}
foreground={<span>}
hideForeground={!props.showForeground}
showForegroundFrame={true}
/>
);
const { foregroundSize = { width: 0, height: 0 } } = getTileLayout(tile);
const imageSize = fitContentToBounds({
contentSize: props.originalImageSize,
boundsSize: foregroundSize,
mode: 'contain'
});
return (
<div>
{renderTileWithLayout(tile, {
foreground: (
<img src="{`//placehold.it/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}">
)</div></span>