//
//  HWMStatusBarMenuConfigDataSource.m
//  HWMUISDKNativeDemo
//
//  Created by guoyongliang/gwx917154 on 2022/5/30.
//  Copyright © 2022 Huawei Technologies Co. Ltd. All rights reserved.
//

#import "HWMStatusBarMenuConfigDataSource.h"

@implementation HWMStatusBarMenuConfigDataSource

+ (instancetype)shareInstance {
    static id instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[self alloc] init];
    });
    return instance;
}

- (NSArray<HWMStatusBarItemModel *> *)buildRecordMenuItems {
    NSMutableArray * items = [NSMutableArray array];
    if (self.isShowRecord) {
        HWMStatusBarItemModel * recordModel = [HWMStatusBarItemModel defaultStatusBarRecordMenu];
        [items addObject:recordModel];
    }
    return items;
}

@end
