import atob from "atob" ; import { FeedbackContextInfo } from "./FeedbackContextInfo" ; export function decodeFeedbackContextInfo ( encoded ) { if ( encoded ) { const decoded = JSON . parse ( atob ( encoded ) ) ; return new FeedbackContextInfo ( decoded . formTitle , decoded . pageTitle , decoded . url ) ; } }