All Downloads are FREE. Search and download functionalities are using the official Maven repository.

plugins.Footer.helpers.tsx Maven / Gradle / Ivy

There is a newer version: 7.28.2
Show newest version
import React from 'react'

import evalExpression, { parseExpression } from '../../utils/evalExpression'

export function withNewlines(str: string) {
    return str.split('\\n').map(text => (
        <>
            {text}
            
)) } export function resolveText(text?: string): string | null { if (!text) { return null } const expression = parseExpression(text) if (expression) { const value = evalExpression(expression, {}) if (typeof value === 'string' || typeof value === 'number') { return String(value) } } return text }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy