@payfit/unity-components
Version:
16 lines (15 loc) • 447 B
JavaScript
import { Text as e } from "../../text/Text.js";
import { useToastContext as t } from "../Toast.context.js";
import { jsx as n } from "react/jsx-runtime";
//#region src/components/toast/parts/ToastContent.tsx
function r({ children: r }) {
let { inline: i } = t();
return i ? /* @__PURE__ */ n(e, {
variant: "body",
className: "uy:mb-100",
children: r
}) : null;
}
r.displayName = "ToastContent";
//#endregion
export { r as ToastContent };