import { contents } from './seo.js';
export default function cleanTitle(url, route = {}) {
if (!url) return null;
const key = url.startsWith('/') ? url.substring(1, url.length) : url;
return typeof contents?.[key] === 'object' ? contents?.[key]?.title : contents?.[key];
}