Add a helper to output a value if it's truthy or nothing otherwise

This commit is contained in:
Eldritch-Oliver 2025-10-12 21:28:52 -06:00
parent d81d86ef47
commit 798e7441b4

View file

@ -9,5 +9,6 @@ export default {
"rc-options": options, "rc-options": options,
// #region Simple // #region Simple
"rc-ifOut": (v) => (v || ``),
"rc-empty-state": (v) => v ?? localizer(`RipCrypt.common.empty`), "rc-empty-state": (v) => v ?? localizer(`RipCrypt.common.empty`),
}; };