-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenericModal.jsx
More file actions
17 lines (14 loc) · 632 Bytes
/
Copy pathGenericModal.jsx
File metadata and controls
17 lines (14 loc) · 632 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import React from 'react';
import { useVisualSettings } from '../context/VisualSettingsContext';
import BrutalistModal from './BrutalistModal';
import LuxeModal from './LuxeModal';
import TerracottaModal from './TerracottaModal';
import MistModal from './MistModal';
const GenericModal = (props) => {
const { fezcodexTheme } = useVisualSettings();
if (fezcodexTheme === 'luxe') return <LuxeModal {...props} />;
if (fezcodexTheme === 'terracotta') return <TerracottaModal {...props} />;
if (fezcodexTheme === 'mist') return <MistModal {...props} />;
return <BrutalistModal {...props} />;
};
export default GenericModal;