import React, { useEffect, useRef, useState } from "react"import { bootstrapCameraKit } from "@snap/camera-kit"const CameraKitComponent = () => { const canvasRef = useRef(null) // Reference to the canvas element const [lensId, setLensId] = useState("43293650876") // State to manage the current lens ID const [session,…