import { NAV_INNER_PX } from '../../utils/navMetrics';

Component({
    options: { multipleSlots: true },
    properties: {
        title: { type: String, value: '' },
        background: { type: String, value: '' },
    },
    data: {
        statusBarHeight: 0,
        navBlockHeight: 0,
    },
    lifetimes: {
        attached() {
            const { statusBarHeight } = wx.getWindowInfo();
            this.setData({
                statusBarHeight,
                navBlockHeight: statusBarHeight + NAV_INNER_PX,
            });
        },
    },
});
