import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Paper, Alert, AlertTitle, Button, Link } from '@mui/material'; const SelfhostedAlert = (): JSX.Element => { const { t } = useTranslation(); const [show, setShow] = useState(true); // If alert is hidden return null if (!show) { return <>; } // Show selfhosted notice else { return (
{ setShow(false); }} > {t('Hide')} } > {t('You are self-hosting RoboSats')} {t( 'RoboSats client is served from your own node granting you the strongest security and privacy.', )}
); } }; export default SelfhostedAlert;