Commit 8c3f4cc9 authored by AlexandrValgamov's avatar AlexandrValgamov
Browse files

Widget | feat: add contexts

parent ddfd57ce
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
'use client';

import React from 'react';

import { Stylebook } from '@/interfaces';

export interface ICurrentStylebookContext {
  stylebook: Stylebook | null;
  setStylebook: (stylebook: Stylebook | null) => void;
}
export const CurrentStylebookContext =
  React.createContext<ICurrentStylebookContext>({
    stylebook: null,
    setStylebook: () => undefined,
  });

src/contexts/index.ts

0 → 100644
+1 −0
Original line number Diff line number Diff line
export * from './current-stylebook-context';