2023-08-10 15:02:46 +00:00
|
|
|
import { t } from '@vegaprotocol/i18n';
|
2023-09-02 00:00:11 +00:00
|
|
|
import { TradingButton } from '@vegaprotocol/ui-toolkit';
|
2023-08-10 15:02:46 +00:00
|
|
|
import { ViewType, useSidebar } from '../sidebar';
|
|
|
|
|
|
|
|
export const AccountsMenu = () => {
|
|
|
|
const setView = useSidebar((store) => store.setView);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<TradingButton
|
|
|
|
size="extra-small"
|
|
|
|
data-testid="open-transfer"
|
|
|
|
onClick={() => setView({ type: ViewType.Transfer })}
|
|
|
|
>
|
|
|
|
{t('Transfer')}
|
|
|
|
</TradingButton>
|
|
|
|
<TradingButton
|
|
|
|
size="extra-small"
|
|
|
|
onClick={() => setView({ type: ViewType.Deposit })}
|
|
|
|
>
|
|
|
|
{t('Deposit')}
|
|
|
|
</TradingButton>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|