mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
11 lines
388 B
TypeScript
11 lines
388 B
TypeScript
import { createContext } from 'react';
|
|
import { ProjectPreviewConsoleError } from '@/lib/consoleMessages';
|
|
|
|
export interface ConsoleErrorContextValue {
|
|
hasErrors: boolean;
|
|
consoleError: ProjectPreviewConsoleError | null;
|
|
clearErrors: () => void;
|
|
dismissConsoleError: () => void;
|
|
}
|
|
|
|
export const ConsoleErrorContext = createContext<ConsoleErrorContextValue | undefined>(undefined); |