- @if (type() === CardType.TEACHER) {
-
![]()
- }
- @if (type() === CardType.STUDENT) {
-
![]()
- }
-
+
@for (item of list(); track item) {
-
+
}
@@ -35,24 +29,17 @@ import { ListItemComponent } from '../list-item/list-item.component';
`,
- imports: [ListItemComponent, NgOptimizedImage],
+ imports: [CommonModule],
})
-export class CardComponent {
- private teacherStore = inject(TeacherStore);
- private studentStore = inject(StudentStore);
-
- readonly list = input