2023-07-24 08:37:18 +00:00
|
|
|
import { VegaIcon, VegaIconNames } from '@vegaprotocol/ui-toolkit';
|
|
|
|
import { Link } from 'react-router-dom';
|
2023-09-20 20:28:34 +00:00
|
|
|
import { Links } from '../../lib/links';
|
2023-11-16 03:10:39 +00:00
|
|
|
import { useT } from '../../lib/use-t';
|
|
|
|
import { Trans } from 'react-i18next';
|
|
|
|
|
|
|
|
const DisclaimerLink = ({ children }: { children?: string[] }) => (
|
|
|
|
<Link className="underline" to={Links.DISCLAIMER()} target="_blank">
|
|
|
|
<span className="flex items-center gap-1">
|
|
|
|
<span>{children}</span>
|
|
|
|
<VegaIcon name={VegaIconNames.OPEN_EXTERNAL} />
|
|
|
|
</span>
|
|
|
|
</Link>
|
|
|
|
);
|
2023-05-19 21:27:45 +00:00
|
|
|
|
|
|
|
export const RiskMessage = () => {
|
2023-11-16 03:10:39 +00:00
|
|
|
const t = useT();
|
2023-05-19 21:27:45 +00:00
|
|
|
return (
|
|
|
|
<>
|
2023-09-20 20:28:34 +00:00
|
|
|
<div className="p-6 mb-6 bg-vega-light-100 dark:bg-vega-dark-100">
|
2023-05-19 21:27:45 +00:00
|
|
|
<ul className="list-[square] ml-4">
|
|
|
|
<li className="mb-1">
|
|
|
|
{t(
|
|
|
|
'Conduct your own due diligence and consult your financial advisor before making any investment decisions.'
|
|
|
|
)}
|
|
|
|
</li>
|
|
|
|
<li className="mb-1">
|
|
|
|
{t(
|
|
|
|
'You may encounter bugs, loss of functionality or loss of assets.'
|
|
|
|
)}
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
{t('No party accepts any liability for any losses whatsoever.')}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<p className="mb-8">
|
2023-11-16 03:10:39 +00:00
|
|
|
<Trans
|
|
|
|
defaults="By using the Vega Console, you acknowledge that you have read and understood the <0>Vega Console Disclaimer</0>"
|
|
|
|
components={[<DisclaimerLink key="link" />]}
|
|
|
|
/>
|
2023-05-19 21:27:45 +00:00
|
|
|
</p>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|