import { __decorate, __metadata } from "tslib";
import React from 'react';
import { AutoBind } from '../../Common/AutoBind';
import { StateManager } from '../../CommonUI/StateManagement/StateManager';
export class BaseSequenceTitle extends React.Component {
    onUpdateStackName(s, name) {
        if (name.length <= 30) {
            s.name = name;
            StateManager.propertyChanged(s, 'name');
        }
    }
}
__decorate([
    AutoBind,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object, String]),
    __metadata("design:returntype", void 0)
], BaseSequenceTitle.prototype, "onUpdateStackName", null);
//# sourceMappingURL=BaseSequenceTitle.js.map