{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/t6Q9t1R3J3U3ryCNz06M/lVI1I44wBd53IhUaOtUZ/Redirect.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{Frame,addPropertyControls,ControlType}from\"framer\";export function RedirectIfDraft({status}){useEffect(()=>{// Redirect ke 404 jika status adalah \"draft\"\nif(status===\"draft\"){window.location.replace(\"/404\");}},[status]);return /*#__PURE__*/_jsx(Frame,{width:1,height:1,background:\"transparent\"});}// Daftarkan prop dengan dropdown option di Framer UI\naddPropertyControls(RedirectIfDraft,{status:{title:\"Status\",type:ControlType.Enum,options:[\"published\",\"draft\"],optionTitles:[\"Published\",\"Draft\"],defaultValue:\"published\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"RedirectIfDraft\":{\"type\":\"reactComponent\",\"name\":\"RedirectIfDraft\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Redirect.map"],
  "mappings": "gJAAyI,SAASA,EAAgB,CAAC,OAAAC,CAAM,EAAE,CAAC,OAAAC,EAAU,IAAI,CACvLD,IAAS,SAASE,EAAO,SAAS,QAAQ,MAAM,CAAG,EAAE,CAACF,CAAM,CAAC,EAAsBG,EAAKC,EAAM,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,aAAa,CAAC,CAAE,CAC9IC,EAAoBN,EAAgB,CAAC,OAAO,CAAC,MAAM,SAAS,KAAKO,EAAY,KAAK,QAAQ,CAAC,YAAY,OAAO,EAAE,aAAa,CAAC,YAAY,OAAO,EAAE,aAAa,WAAW,CAAC,CAAC",
  "names": ["RedirectIfDraft", "status", "ue", "window", "p", "Frame", "addPropertyControls", "ControlType"]
}
