Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const FolderCoverWithImage: React.StatelessComponent = (
props: IFolderCoverWithImageProps
): JSX.Element => {
const { originalImageSize, ...folderCoverProps } = props;
const folderCover = ;
const { contentSize } = getFolderCoverLayout(folderCover);
const imageSize = fitContentToBounds({
contentSize: originalImageSize,
boundsSize: contentSize,
mode: 'cover'
});
return renderFolderCoverWithLayout(folderCover, {
children: (
<img src="{`//placehold.it/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}">
)
});
};
const FolderCoverWithImage: React.StatelessComponent = (props: IFolderCoverWithImageProps): JSX.Element => {
const { originalImageSize, ...folderCoverProps } = props;
const folderCover = ;
const { contentSize } = getFolderCoverLayout(folderCover);
const imageSize = fitContentToBounds({
contentSize: originalImageSize,
boundsSize: contentSize,
mode: 'cover'
});
return renderFolderCoverWithLayout(folderCover, {
children: <img src="{`//placehold.it/${Math.round(imageSize.width)}x${Math.round(imageSize.height)}`}">
});
};