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

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

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

}