import * as Schema from '@vegaprotocol/types'; import { ExternalLink, Intent, Notification } from '@vegaprotocol/ui-toolkit'; import { DApp, TOKEN_PROPOSAL, useLinks } from '@vegaprotocol/environment'; import { useUpdateProposal } from '../lib'; import { useT } from '../use-t'; type MarketProposalNotificationProps = { marketId?: string; }; export const MarketProposalNotification = ({ marketId, }: MarketProposalNotificationProps) => { const t = useT(); const tokenLink = useLinks(DApp.Governance); const { data: proposal } = useUpdateProposal({ id: marketId, proposalType: Schema.ProposalType.TYPE_UPDATE_MARKET, }); if (proposal) { const proposalLink = tokenLink( TOKEN_PROPOSAL.replace(':id', proposal.id || '') ); const message = (