2023-06-23 10:52:03 +00:00
|
|
|
import {type JSX} from "preact";
|
|
|
|
import {Setting, type SettingProps} from "./index.js";
|
2022-02-23 13:52:06 +00:00
|
|
|
|
2023-06-23 10:52:03 +00:00
|
|
|
export function BackToTopSetting(props: SettingProps): JSX.Element {
|
|
|
|
return (
|
|
|
|
<Setting {...props}>
|
2022-02-23 13:52:06 +00:00
|
|
|
<p class="info">
|
|
|
|
Adds a hovering button to the bottom-right of all pages once you've
|
|
|
|
scrolled down far enough that, when clicked, will scroll you back to the
|
|
|
|
top of the page.
|
|
|
|
</p>
|
2023-06-23 10:52:03 +00:00
|
|
|
</Setting>
|
|
|
|
);
|
2022-02-23 13:52:06 +00:00
|
|
|
}
|