aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/use-breadcrumbs/index.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-12-12 18:50:03 +0100
committerArmand Philippot <git@armandphilippot.com>2023-12-12 18:50:03 +0100
commit85c4c42bd601270d7be0f34a0767a34bb85e29bb (patch)
tree16a07a89cf209139672592fd6988f0c028acb7e9 /src/utils/hooks/use-breadcrumbs/index.ts
parent93f87c10783e3d76f1dec667779aedffcae33a39 (diff)
refactor(hooks): rewrite useBreadcrumbs hook
* use next/router to get the slug instead of using props * handle cases where the current page title is not provided * update JSON-LD schema to match the example in documentation * add tests
Diffstat (limited to 'src/utils/hooks/use-breadcrumbs/index.ts')
-rw-r--r--src/utils/hooks/use-breadcrumbs/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/hooks/use-breadcrumbs/index.ts b/src/utils/hooks/use-breadcrumbs/index.ts
new file mode 100644
index 0000000..87e5d79
--- /dev/null
+++ b/src/utils/hooks/use-breadcrumbs/index.ts
@@ -0,0 +1 @@
+export * from './use-breadcrumbs';