import { Component, Input, Output, EventEmitter } from '@angular/core'; import type { User } from './User'; @Component({ selector: 'storybook-header', template: `

Acme

Welcome, {{ user.name }}!
`, styleUrls: ['./header.css'], }) export default class HeaderComponent { @Input() user: User | null = null; @Output() onLogin = new EventEmitter(); @Output() onLogout = new EventEmitter(); @Output() onCreateAccount = new EventEmitter(); }