This commit is contained in:
Daniel Ledda
2024-11-01 15:42:09 +01:00
parent f60e975765
commit 7539e6ed48
50 changed files with 2004 additions and 750 deletions

12
app/useDJSSRContext.ts Normal file
View File

@@ -0,0 +1,12 @@
import { type MaybeRefOrGetter, useSSRContext } from "vue";
export type DJSSRContext = {
head: {
title: MaybeRefOrGetter<string>;
};
registry: Record<string, unknown>;
};
export default function useDJSSRContext() {
return useSSRContext<DJSSRContext>();
}