/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
 * @module Zone
 */
import * as React from "react";
import { BackTarget, MergeTarget, ZoneTargetType } from "@itwin/appui-layout-react";
/** Zone Targets React component.
 * @internal
 */
export class ZoneTargets extends React.Component {
    render() {
        switch (this.props.dropTarget) {
            case ZoneTargetType.Merge: // eslint-disable-line deprecation/deprecation
                return (React.createElement(MergeTarget, { className: this.props.className, 
                    // eslint-disable-next-line deprecation/deprecation
                    onTargetChanged: (isTargeted) => this.props.targetChangeHandler.handleTargetChanged(this.props.zoneId, ZoneTargetType.Merge, isTargeted), style: this.props.style }));
            case ZoneTargetType.Back: // eslint-disable-line deprecation/deprecation
                return (React.createElement(BackTarget, { className: this.props.className, 
                    // eslint-disable-next-line deprecation/deprecation
                    onTargetChanged: (isTargeted) => this.props.targetChangeHandler.handleTargetChanged(this.props.zoneId, ZoneTargetType.Back, isTargeted), style: this.props.style, zoneIndex: this.props.zoneId }));
            default:
                return null;
        }
    }
}
//# sourceMappingURL=ZoneTargets.js.map