import ids from './page-ids.json'; // IDs are persisted, never derive them from titles or positions. Keep IDs when renaming a page. export function pageId(key:string):string{return (ids as Record)[key]||'';} export const exploreUrl=(id:string)=>'/explore/'+encodeURIComponent(id); export const guidanceUrl=(path:string)=>exploreUrl(pageId('guidance:'+path)); export function previewUrl(source:string,width=480){return '/api/preview?'+new URLSearchParams({source,width:String(width)});}