14 lines
317 B
TypeScript
14 lines
317 B
TypeScript
import { type MaybeRefOrGetter, useSSRContext } from "vue";
|
|
|
|
export type DJSSRContext = {
|
|
head: {
|
|
title: MaybeRefOrGetter<string>;
|
|
};
|
|
registry: Record<string, unknown>;
|
|
styles: Record<string, string>;
|
|
};
|
|
|
|
export default function useDJSSRContext() {
|
|
return useSSRContext<DJSSRContext>();
|
|
}
|