import React, {FC, ReactNode} from "react"; import {__} from "../globals"; export type TextPreSuFixedProps = { direction: 'prefix' | 'suffix', primary: ReactNode, secondary: ReactNode, } export const TextPreSuFixed: FC = ({direction, primary, secondary}) => { const secondaryElement = {secondary} const primaryElement = {primary} return
{direction === 'prefix' ? <> {secondaryElement} {primaryElement} : <> {primaryElement} {secondaryElement} }
}