2023-10-16 18:18:26 +00:00
|
|
|
import { VegaIconNames } from '@vegaprotocol/ui-toolkit';
|
|
|
|
import {
|
|
|
|
SidebarButton,
|
|
|
|
SidebarDivider,
|
|
|
|
ViewType,
|
|
|
|
} from '../../components/sidebar';
|
|
|
|
import { useGetCurrentRouteId } from '../../lib/hooks/use-get-current-route-id';
|
2023-11-16 03:10:39 +00:00
|
|
|
import { useT } from '../../lib/use-t';
|
2023-10-16 18:18:26 +00:00
|
|
|
|
|
|
|
export const LiquiditySidebar = () => {
|
2023-11-16 03:10:39 +00:00
|
|
|
const t = useT();
|
2023-10-16 18:18:26 +00:00
|
|
|
const currentRouteId = useGetCurrentRouteId();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<SidebarButton
|
|
|
|
view={ViewType.Deposit}
|
|
|
|
icon={VegaIconNames.DEPOSIT}
|
|
|
|
tooltip={t('Deposit')}
|
|
|
|
routeId={currentRouteId}
|
|
|
|
/>
|
|
|
|
<SidebarButton
|
|
|
|
view={ViewType.Withdraw}
|
|
|
|
icon={VegaIconNames.WITHDRAW}
|
|
|
|
tooltip={t('Withdraw')}
|
|
|
|
routeId={currentRouteId}
|
|
|
|
/>
|
|
|
|
<SidebarButton
|
|
|
|
view={ViewType.Transfer}
|
|
|
|
icon={VegaIconNames.TRANSFER}
|
|
|
|
tooltip={t('Transfer')}
|
|
|
|
routeId={currentRouteId}
|
|
|
|
/>
|
|
|
|
<SidebarDivider />
|
|
|
|
<SidebarButton
|
|
|
|
view={ViewType.Order}
|
|
|
|
icon={VegaIconNames.TICKET}
|
|
|
|
tooltip={t('Order')}
|
|
|
|
routeId={currentRouteId}
|
|
|
|
/>
|
|
|
|
<SidebarButton
|
|
|
|
view={ViewType.Info}
|
|
|
|
icon={VegaIconNames.BREAKDOWN}
|
|
|
|
tooltip={t('Market specification')}
|
|
|
|
routeId={currentRouteId}
|
|
|
|
/>
|
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|