mirror of
https://github.com/wassname/talk.git
synced 2026-08-14 12:50:17 +08:00
20 lines
361 B
JavaScript
20 lines
361 B
JavaScript
import React, { Component } from "react";
|
|
import { getSlotElements } from "coral-framework/helpers/plugins";
|
|
|
|
class Slot extends Component {
|
|
render() {
|
|
const { fill, ...rest } = this.props;
|
|
return (
|
|
<div>
|
|
{getSlotElements(fill, rest)}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
Slot.propTypes = {
|
|
fill: React.PropTypes.string
|
|
};
|
|
|
|
export default Slot;
|