10 lines
316 B
TypeScript
10 lines
316 B
TypeScript
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
|
|
}
|