mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
refactor: docs (#10126)
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
'use client';
|
||||
|
||||
import { usePathname } from 'next/navigation';
|
||||
|
||||
export function useCurrentPathMeta() {
|
||||
const pathname = usePathname();
|
||||
|
||||
if (!pathname) {
|
||||
return {};
|
||||
}
|
||||
|
||||
const [, , , packageName, version, item] = pathname.split('/');
|
||||
|
||||
return {
|
||||
packageName,
|
||||
version,
|
||||
item,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user