mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: remove /fullscreen route, add dynamic page titles
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { useEffect } from "react";
|
||||
|
||||
export function usePageTitle(title?: string) {
|
||||
useEffect(() => {
|
||||
document.title = title ? `${title} - SnapOtter` : "SnapOtter";
|
||||
return () => {
|
||||
document.title = "SnapOtter";
|
||||
};
|
||||
}, [title]);
|
||||
}
|
||||
Reference in New Issue
Block a user