mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 04:46:05 +00:00
public commit
This commit is contained in:
8
app/src/ui/hooks/use-browser-title.ts
Normal file
8
app/src/ui/hooks/use-browser-title.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { useLayoutEffect } from "react";
|
||||
|
||||
export function useBrowserTitle(path: string[] = []) {
|
||||
useLayoutEffect(() => {
|
||||
const prefix = "BKND";
|
||||
document.title = [prefix, ...path].join(" / ");
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user