import useTranslation from "next-translate/useTranslation"; import router from "next/router"; import Link from "next/link"; import CaseNoticeBanner from "./case/caseNoticeBanner"; export default function ServiceBanner(props) { let { t, lang } = useTranslation(); const showSigninFromEnv = true; const showNoticeFromEnv = false; // keep backwards-compat with existing usage const showSignin = props?.noSignin === true ? false : showSigninFromEnv; const signInButton = () => { router.push( `${ router.locale == "cy" ? "/awd/mewngofnodi" : "/auth/signin" }?callbackUrl=${encodeURIComponent( window.location.href, )}&error=EmailSignin`, ); }; return ( <>
Oherwydd gwaith cynnal a chadw hanfodol, rydym yn disgwyl rhywfaint o darfu ar ein gwasanaethau Porth Gwaith Achos rhwng 9-13 Chwefror 2026.{" "}
Ymddiheurwn am yr anghyfleustra. Am ymholiadau brys yn ystod y cyfnod hwn, cysylltwch รข{" "} pedw.gwaithachos@llyw.cymru
> ) : ( <>Due to essential maintenance, we are expecting some disruption to our Casework Portal services between 9-13 February 2026.
We apologise for the inconvenience. For urgent enquries during this time please contact{" "} pedw.casework@gov.wales
> )}