export default function ($cookies) {
    return {
        status: $cookies.get('dclog'),
        restrict: 'EA',
        controller: 'header',
        scope: false,
        templateUrl() {
            if (this.status) {
                return '/src/scripts/ng/views/directives/user.html';
            }
            else {
                return '/src/scripts/ng/views/directives/guest.html';
            }
        }
    }
}
