From 0d2f232d30982d060366adf723954351a0dead1e Mon Sep 17 00:00:00 2001 From: Gaspard Rivoire <36168128+GaspardRivoire@users.noreply.github.com> Date: Wed, 12 Jun 2024 10:10:49 +0200 Subject: [PATCH] =?UTF-8?q?Feature=20PageVacances=20annul=C3=A9es,=20on=20?= =?UTF-8?q?garde=20le=20fichier=20de=20type=20au=20cas=20ou?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/customPage.type.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 types/customPage.type.ts diff --git a/types/customPage.type.ts b/types/customPage.type.ts new file mode 100644 index 000000000..1ae1bb679 --- /dev/null +++ b/types/customPage.type.ts @@ -0,0 +1,15 @@ +export type CustomPageContentType = 'text' | 'video' | 'image' | 'h5p' | 'sound' | 'document'; + +export interface CustomPageContent { + id: number; + type: CustomPageContentType; + value: string; +} + +export interface CustomPage { + id: number; + content: CustomPageContent[]; + pageType: 'maintenance' | 'home' | 'pelico'; + isActive?: boolean; + visibility?: 'classe' | 'famille'; +}