| 4 | import { postTip } from './tip-handler'; |
| 5 | |
| 6 | export class Tip extends Component<IPublicTypeTipConfig> { |
| 7 | private id = uniqueId('tips$'); |
| 8 | |
| 9 | componentWillUnmount() { |
| 10 | postTip(this.id, null); |
| 11 | } |
| 12 | |
| 13 | render() { |
| 14 | postTip(this.id, this.props); |
| 15 | return <meta data-role="tip" data-tip-id={this.id} />; |
| 16 | } |
| 17 | } |
nothing calls this directly
no test coverage detected