\n {hasHighlights && (\n \n toggleDialog(gameHighlights || fullGame || condensedGame)\n }\n backgroundColor={backgroundTypes.black}\n >\n {t(\"highlights\")}\n \n )}\n \n {hasBuyTickets && }\n {hasHotelBooking && }\n
\n {appleStreamURL && (\n \n trackButton()}\n >\n \n \n \n )}\n \n );\n};\nexport default MatchHubButtons;\n","import styled from \"styled-components\";\n\nexport const StyledMatchHubButtons = styled.div`\n display: flex;\n justify-content: center;\n gap: 12px;\n z-index: 1;\n margin-top: auto;\n\n .mls-c-matchbutton {\n min-width: 230px;\n }\n\n .mls-c-matchbutton__apple {\n &--full {\n width: 300px;\n }\n }\n\n .mls-c-match-buttons__external-buttons {\n display: flex;\n justify-content: space-between;\n gap: 8px;\n }\n\n &.xs,\n &.xxs,\n &.sm {\n width: 100%;\n display: block;\n\n .mls-c-match-buttons__external-buttons {\n margin-bottom: .5rem;\n margin-top: .5rem;\n }\n\n .mls-c-matchbutton {\n min-width: auto;\n padding: 0;\n }\n\n a {\n width: 100%;\n }\n\n .mls-c-matchbutton__apple {\n &--full {\n width: 100%;\n }\n }\n }\n`;\n","import styled from \"styled-components\";\n\nconst StyledTicketButton = styled.div`\n width: 100%;\n`;\n\nconst StyledTicketButtonWrapper = styled.div`\n width: 100%;\n`;\n\nexport { StyledTicketButton, StyledTicketButtonWrapper };\n","import React, { useState } from \"react\";\n\nimport ReactDOM from \"react-dom\";\nimport { trackMatchInteraction } from \"../../../../libraries/_modules/tracking/helpers\";\nimport { statusTypes, useMatchData } from \"../../../mls-match-list/utils\";\nimport { Link } from \"../../../shared/components/Link/Link\";\nimport MatchButton from \"../../../shared/components/MatchButton/MatchButton\";\nimport TicketModal from \"../../../shared/components/TicketModal/main\";\nimport { useReactAppState } from \"../../../shared/containers/utils\";\nimport { backgroundTypes } from \"../../../shared/styled/Theme\";\nimport { StyledTicketButton } from \"./StyledTicketButton\";\nimport { getTicketMasterIconUrl, getTicketMasterUrl } from \"../../../shared/utils\";\nimport { TicketIconV2 } from \"../../../shared/svg/TicketIconV2/TicketIconV2\";\n\nconst TicketButton = ({\n backgroundColor = backgroundTypes.black,\n size = \"100%\",\n}) => {\n const { t } = useReactAppState();\n const [isOpen, setIsOpen] = useState(false);\n const { competition, promoInfo, slug, status } = useMatchData();\n const { firstPartyTickets, thirdPartyTickets } = promoInfo || {};\n const ticketMasterIconUrl = getTicketMasterIconUrl({ variant: \"light\" });\n const hasTicketMasterUrl = getTicketMasterUrl([firstPartyTickets?.url, thirdPartyTickets?.url]);\n\n\n const altText =\n promoInfo?.firstPartyTickets?.accessibleText ||\n promoInfo?.thirdPartyTickets?.accessibleText;\n\n const url =\n promoInfo?.firstPartyTickets?.url || promoInfo?.thirdPartyTickets?.url;\n\n const getCtaFromStatus = () =>\n promoInfo?.firstPartyTickets?.displayText ||\n promoInfo?.thirdPartyTickets?.displayText ||\n t(\"buy_tickets\");\n\n const trackButton = () => {\n trackMatchInteraction({\n clickType: \"button\",\n ctaLabel: getCtaFromStatus(),\n match: slug,\n matchState: status?.abbreviation,\n competition: competition?.shortName,\n });\n };\n\n const shouldOpenTicketModal =\n status?.abbreviation === statusTypes.pre &&\n promoInfo?.firstPartyTickets?.url &&\n promoInfo?.thirdPartyTickets?.url;\n\n const SideIcon = hasTicketMasterUrl ?