//  PendingDetailsViewController.mm
#import "PendingDetailsViewController.h"

@implementation PendingDetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = UIColor.systemBackgroundColor;

    UILabel *label = [[UILabel alloc] init];
    label.translatesAutoresizingMaskIntoConstraints = NO;
    label.numberOfLines = 0;
    label.text = [NSString stringWithFormat:
        @"Unit: %@\nBy: %@\nType: %@",
        self.item[@"unitName"],
        self.item[@"createdBy"],
        self.item[@"type"]];

    [self.view addSubview:label];

    [NSLayoutConstraint activateConstraints:@[
        [label.centerXAnchor constraintEqualToAnchor:self.view.centerXAnchor],
        [label.centerYAnchor constraintEqualToAnchor:self.view.centerYAnchor],
    ]];
}

@end
