mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +00:00
* Add SVG icons for map pins * Add federation basis and new coordinator form (#793) * Add new coordinator entry issue form * Add Federation basis * Fix eslint errors from F2F and fix languages * Redo eslint @typescript-eslint/strict-boolean-expressions * Robot Page working * Contexts Working * Garage Working * CurrentOrder working * Federation model working --------- Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com> Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
13 lines
439 B
TypeScript
13 lines
439 B
TypeScript
import { useContext } from 'react';
|
|
import { AppContext, type UseAppStoreType } from '../../contexts/AppContext';
|
|
import SelfhostedAlert from './SelfhostedAlert';
|
|
import UnsafeAlert from './UnsafeAlert';
|
|
|
|
const HostAlert = (): JSX.Element => {
|
|
const { settings } = useContext<UseAppStoreType>(AppContext);
|
|
const component = settings.selfhostedClient ? SelfhostedAlert : UnsafeAlert;
|
|
return component();
|
|
};
|
|
|
|
export default HostAlert;
|