import styled from '@emotion/styled';
import { SvgLogoNmrium } from 'cheminfo-font';
import { Toolbar, useOnOff } from 'react-science/ui';
import versionInfo from '../../../versionInfo.js';
import { useCore } from '../../context/CoreContext.js';
import Logo from '../../elements/Logo.js';
import { StandardDialog } from '../../elements/StandardDialog.tsx';
import { StyledDialogBody } from '../../elements/StyledDialogBody.js';
import { renderCoreSlot } from '../../utility/renderCoreSlot.js';
import AboutUsZakodium from './AboutUsZakodium.js';
const FallbackDialogContents = styled.div`
display: flex;
flex-direction: column;
padding: 20px;
user-select: none;
button:focus {
outline: none;
}
ul {
list-style-type: disc;
margin-left: 20px;
}
span,
li {
user-select: text;
}
span.title {
color: #ea580c;
font-weight: bold;
}
span.content {
color: #2b143e;
font-size: 14px;
text-align: left;
}
a {
color: #969696;
}
a:hover,
a:focus {
color: #00bcd4;
}
`;
const InfoBlock = styled.div`
align-items: center;
display: flex;
flex-direction: column;
`;
const Separator = styled.span`
border-bottom: 1px solid gray;
height: 1px;
margin: 10px 0;
width: 15px;
`;
const modalContentFallback = (
Version
GitHub ( https://github.com/cheminfo/nmrium )
This project is developed by Zakodium Sàrl (Switzerland), the University
of Cologne (Germany), Johannes Gutenberg University Mainz (Germany) and
Universidad del Valle (Colombia).
Funding is provided by
-
IDNMR grant, which part of the Scientific Library Services and
Information Systems (LIS) initiative of the DFG.
-
- Universidad del Valle (Cali, Colombia).
-
This project has received funding from the European Union’s Horizon
2020 research and innovation programme under grant agreement No
957189. The project is part of BATTERY 2030+, the large-scale European
research initiative for inventing the sustainable batteries of the
future.
);
function AboutUsModal() {
const [isOpenDialog, openDialog, closeDialog] = useOnOff(false);
const core = useCore();
return (
<>
}
/>
{renderCoreSlot(core, 'topbar.about_us.modal', modalContentFallback)}
>
);
}
export default AboutUsModal;
function VersionInfo() {
const { version } = versionInfo;
if (version === 'HEAD') {
return 'HEAD';
} else if (version.startsWith('git-')) {
return (
git-{version.slice(4, 14)}
);
} else {
return (
{version}
);
}
}