djledda.de main
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
395 B

  1. import { type MaybeRefOrGetter, useSSRContext } from "vue";
  2. export type DJSSRContext = {
  3. head: {
  4. title: MaybeRefOrGetter<string>;
  5. metatags: MaybeRefOrGetter<Array<{ name: string, content: string }>>;
  6. };
  7. registry: Record<string, unknown>;
  8. styles: Record<string, string>;
  9. };
  10. export default function useDJSSRContext() {
  11. return useSSRContext<DJSSRContext>();
  12. }