Loading src/contexts/current-stylebook-context.ts 0 → 100644 +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'; Loading
src/contexts/current-stylebook-context.ts 0 → 100644 +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';