Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<div>
({ value: x.id, text: `${x.id} ($${cloudStackOpts.instanceTypesMap[x.id].monthlyPrice} / month)` }))}
/>
{chosenInstanceType &&
CPUs:
{chosenInstanceType.numCPUs}
Disk:
{filesize(chosenInstanceType.diskSpaceMB * 1024 * 1024)}
Memory:
{filesize(chosenInstanceType.memoryMB * 1024 * 1024)}
Hourly:
${chosenInstanceType.hourlyPrice}
Monthly:
${chosenInstanceType.monthlyPrice}
}
</div>const _onClick = useCallback(() => {
onClick(attachment, url)
}, [attachment, url, onClick])
let Wrapper
if (isImage(attachment['Content-Type'])) {
Wrapper = ImageWrapper
} else if (isPDF(attachment['Content-Type'])) {
Wrapper = EmbedWrapper
}
return (
)
}function AttachmentPreviewModal({ attachment, url }) {
if (!attachment) {
return null
}
return (
)
} const getFriendlySize = (size?: number): string => filesize(size || 0);