UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

24 lines (23 loc) 639 B
import { Announce } from "./Announce.js"; import { c } from "react-compiler-runtime"; import { jsx } from "react/jsx-runtime"; //#region src/live-region/AriaAlert.tsx function AriaAlert(props) { var _props$announceOnShow; const $ = c(3); const t0 = (_props$announceOnShow = props.announceOnShow) !== null && _props$announceOnShow !== void 0 ? _props$announceOnShow : true; let t1; if ($[0] !== props || $[1] !== t0) { t1 = /*#__PURE__*/ jsx(Announce, { ...props, announceOnShow: t0, politeness: "assertive" }); $[0] = props; $[1] = t0; $[2] = t1; } else t1 = $[2]; return t1; } //#endregion export { AriaAlert };