import * as React from "react";
import {IProps} from "./layer";
import PopupLayer, {popupLayer} from "../../popupLayer";

const CompositeLayer: React.FC<IProps> = (props) => {
    return <PopupLayer name={props.name}
                       animated={props.animated} direction={props.direction}
                       width={props.width} height={props.height} edge={props.edge} borderRadius={props.borderRadius}
                       isClickHide={props.isClickHide} bg={props.bg} borderColor={props.borderColor}
                       openCallback={props.openCallback} closeCallback={props.closeCallback}>
        {props.children}
    </PopupLayer>
}

const layer = popupLayer
export default CompositeLayer
export {
    layer
}
