mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 18:03:47 +00:00
7cfe7c0d78
* refactor: remove unused code * feat: add human readable values to message parsing --------- Co-authored-by: Fabian Posenau <fabian@fphome.de> Co-authored-by: cv <34649812+cpvalente@users.noreply.github.com>
47 lines
1.3 KiB
TypeScript
47 lines
1.3 KiB
TypeScript
import { ModalBody, Tab, TabList, TabPanel, TabPanels, Tabs } from '@chakra-ui/react';
|
|
|
|
import ModalWrapper from '../ModalWrapper';
|
|
|
|
import OscIntegration from './OscIntegration';
|
|
import OscSettings from './OscSettings';
|
|
|
|
import styles from '../Modal.module.scss';
|
|
|
|
interface IntegrationModalProps {
|
|
isOpen: boolean;
|
|
onClose: () => void;
|
|
}
|
|
|
|
const oscDocsUrl = 'https://ontime.gitbook.io/v2/control-and-feedback/integrations';
|
|
|
|
export default function IntegrationModal(props: IntegrationModalProps) {
|
|
const { isOpen, onClose } = props;
|
|
|
|
return (
|
|
<ModalWrapper title='Integration Settings' isOpen={isOpen} onClose={onClose}>
|
|
<ModalBody>
|
|
<div className={styles.headerNotes}>
|
|
Manage settings related to protocol integrations
|
|
<a href={oscDocsUrl} target='_blank' rel='noreferrer'>
|
|
Read the docs
|
|
</a>
|
|
</div>
|
|
<Tabs variant='ontime' size='sm' isLazy>
|
|
<TabList>
|
|
<Tab>OSC</Tab>
|
|
<Tab>OSC Integration</Tab>
|
|
</TabList>
|
|
<TabPanels>
|
|
<TabPanel>
|
|
<OscSettings />
|
|
</TabPanel>
|
|
<TabPanel>
|
|
<OscIntegration />
|
|
</TabPanel>
|
|
</TabPanels>
|
|
</Tabs>
|
|
</ModalBody>
|
|
</ModalWrapper>
|
|
);
|
|
}
|