fix: cleanup

This commit is contained in:
2026-06-04 06:42:27 -05:00
parent f989b144cf
commit 654cfec147
52 changed files with 290 additions and 540 deletions
@@ -0,0 +1,23 @@
import { useTranslation } from "react-i18n-lite";
interface ReaderTocButtonProps {
onClick: () => void;
}
export function ReaderTocButton({ onClick }: ReaderTocButtonProps) {
const { t } = useTranslation();
return (
<button
type="button"
className="reader-bar-btn"
onClick={onClick}
aria-label={t("reader.tocAria")}
>
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<line x1="3" y1="6" x2="21" y2="6" />
<line x1="3" y1="12" x2="21" y2="12" />
<line x1="3" y1="18" x2="21" y2="18" />
</svg>
</button>
);
}