Files
djledda-web/app/useDJSSRContext.ts
Daniel Ledda 9eb1701250 update
2024-11-02 15:49:07 +01:00

15 lines
395 B
TypeScript

import { type MaybeRefOrGetter, useSSRContext } from "vue";
export type DJSSRContext = {
head: {
title: MaybeRefOrGetter<string>;
metatags: MaybeRefOrGetter<Array<{ name: string, content: string }>>;
};
registry: Record<string, unknown>;
styles: Record<string, string>;
};
export default function useDJSSRContext() {
return useSSRContext<DJSSRContext>();
}