/** * This component is a modal dialog that can wraps the application style */ import React from 'react'; import Modal from 'react-modal'; import { useTranslation } from 'react-i18next'; import { Loader } from './loader'; import CustomAsset from '../api/custom-asset'; Modal.setAppElement('body'); interface FabModalProps { title: string, isOpen: boolean, toggleModal: () => void } const blackLogoFile = CustomAsset.get('logo-black-file'); export const FabModal: React.FC = ({ title, isOpen, toggleModal, children }) => { const { t } = useTranslation('shared'); const blackLogo = blackLogoFile.read(); return (
{blackLogo.custom_asset_file_attributes.attachment}

{ title }

{children}
); }