mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 16:46:00 +00:00
public commit
This commit is contained in:
@@ -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