mirror of
https://github.com/wassname/talk.git
synced 2026-07-09 12:52:21 +08:00
16 lines
390 B
JavaScript
16 lines
390 B
JavaScript
import React from 'react';
|
|
import cn from 'classnames';
|
|
import styles from './Slot.css';
|
|
import {getSlotElements} from 'coral-framework/helpers/plugins';
|
|
|
|
export default function Slot ({fill, inline = false, ...rest}) {
|
|
return (
|
|
<div className={cn({[styles.inline]: inline})}>
|
|
{getSlotElements(fill, rest)}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
Slot.propTypes = {
|
|
fill: React.PropTypes.string
|
|
}; |