summary refs log tree commit diff
path: root/synapse_topology/webui/src/js/components/InlineError.jsx
blob: e5761131edf9f2914c6a0dac50792e7855f46ed6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import React from 'react';

export default ({ error, children }) => {

    return <div
        className="inlineError"
        error={error ? "true" : "false"}>
        {children}
        {error ? <span>{error}</span> : undefined}
    </div>
}