mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-05-07 21:03:53 -04:00
refactor(frontend): convert contexts layer to TS and align page integration
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { createContext } from 'react';
|
||||
import { config as mediacmsConfig } from '../settings/config';
|
||||
|
||||
const notifications = mediacmsConfig(window.MediaCMS).notifications.messages;
|
||||
|
||||
const texts = {
|
||||
notifications,
|
||||
};
|
||||
|
||||
export const TextsContext = createContext(texts);
|
||||
|
||||
export const TextsConsumer = TextsContext.Consumer;
|
||||
Reference in New Issue
Block a user