-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeModal.jsx
More file actions
17 lines (14 loc) · 674 Bytes
/
Copy pathCodeModal.jsx
File metadata and controls
17 lines (14 loc) · 674 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 BrutalistCodeModal from './BrutalistCodeModal';
import LuxeCodeModal from './LuxeCodeModal';
import TerracottaCodeModal from './TerracottaCodeModal';
import MistCodeModal from './MistCodeModal';
const CodeModal = (props) => {
const { fezcodexTheme } = useVisualSettings();
if (fezcodexTheme === 'luxe') return <LuxeCodeModal {...props} />;
if (fezcodexTheme === 'terracotta') return <TerracottaCodeModal {...props} />;
if (fezcodexTheme === 'mist') return <MistCodeModal {...props} />;
return <BrutalistCodeModal {...props} />;
};
export default CodeModal;