// Blackflame-themed back button for detail/reading views. Goes back in history // (hash navigation is in history); falls back to home if there's nowhere to go. import { el } from '../dom.js'; export function backButton() { return el('button', { class: 'ghost back-btn', title: 'Back', onclick: () => { if (history.length > 1) history.back(); else location.hash = '#/'; } }, '← Back'); }