import { BlockType } from '@devvit/protos';
export var BlockTypeName;
(function (BlockTypeName) {
    BlockTypeName["Root"] = "root";
    BlockTypeName["Stack"] = "stack";
    BlockTypeName["Text"] = "text";
    BlockTypeName["Button"] = "button";
    BlockTypeName["Image"] = "image";
    BlockTypeName["Spacer"] = "spacer";
    BlockTypeName["Icon"] = "icon";
    BlockTypeName["Avatar"] = "avatar";
    BlockTypeName["FullSnoo"] = "fullsnoo";
    BlockTypeName["Animation"] = "animation";
    BlockTypeName["WebView"] = "web-view";
    BlockTypeName["Unknown"] = "unknown";
})(BlockTypeName || (BlockTypeName = {}));
export function blockTypeToString(type) {
    switch (type) {
        case BlockType.BLOCK_ROOT:
            return BlockTypeName.Root;
        case BlockType.BLOCK_STACK:
            return BlockTypeName.Stack;
        case BlockType.BLOCK_TEXT:
            return BlockTypeName.Text;
        case BlockType.BLOCK_BUTTON:
            return BlockTypeName.Button;
        case BlockType.BLOCK_IMAGE:
            return BlockTypeName.Image;
        case BlockType.BLOCK_SPACER:
            return BlockTypeName.Spacer;
        case BlockType.BLOCK_ICON:
            return BlockTypeName.Icon;
        case BlockType.BLOCK_AVATAR:
            return BlockTypeName.Avatar;
        case BlockType.BLOCK_FULLSNOO:
            return BlockTypeName.FullSnoo;
        case BlockType.BLOCK_ANIMATION:
            return BlockTypeName.Animation;
        case BlockType.BLOCK_WEBVIEW:
            return BlockTypeName.WebView;
        case BlockType.UNRECOGNIZED:
            return BlockTypeName.Unknown;
        default:
            return type;
    }
}
//# sourceMappingURL=block-type.js.map