feat(SW-190): added hero to static content pages
This commit is contained in:
9
server/routers/contentstack/contentPage/utils.ts
Normal file
9
server/routers/contentstack/contentPage/utils.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { insertResponseToImageVaultAsset } from "@/utils/imageVault"
|
||||
|
||||
import { InsertResponse } from "@/types/components/imageVaultImage"
|
||||
|
||||
export function makeImageVaultImage(image: any) {
|
||||
return image && !!Object.keys(image).length
|
||||
? insertResponseToImageVaultAsset(image as InsertResponse)
|
||||
: undefined
|
||||
}
|
||||
Reference in New Issue
Block a user