context.ts 278 B

1234567891011
  1. import React from "react";
  2. import getSiteConfig, { SiteConfig } from "./getSiteConfig";
  3. export interface ContextProps {
  4. genre: GenreItem[];
  5. siteConfig: SiteConfig;
  6. }
  7. export const Context = React.createContext<ContextProps>({
  8. genre: [],
  9. siteConfig: getSiteConfig(),
  10. });