plugins.Footer.PositionedText.tsx Maven / Gradle / Ivy
The newest version!
import classNames from 'classnames'
import React from 'react'
import { withNewlines } from './helpers'
interface PositionedTextProps {
text?: string | null
position: 'left' | 'right'
}
export function PositionedText({ text, position }: PositionedTextProps) {
if (!text) {
return null
}
return (
{withNewlines(text)}
)
}