import { Component } from '@angular/core';

@Component({
  selector: 'app-tab4',
  templateUrl: 'tab4.page.html',
  styleUrls: ['tab4.page.scss'],
})
export class Tab4Page {
  segmentModel = 'works';
  selectedTab = 'profile';
  WorksItems: any[] = [
    { image: 'assets/image2.jpg', likes: '100' },
    { image: 'assets/image3.jpg', likes: '150' },
    { image: 'assets/image4.jpg', likes: '120' },
    // 添加更多项目
  ];

  LikesItems: any[] = [
    { image: 'assets/image1.jpg', likes: '2.2w' },
    { image: 'assets/image2.jpg', likes: '1.6w' },
    { image: 'assets/image3.jpg', likes: '10.3w' },
    // 添加更多项目
  ];

  FavoritesItems: any[] = [
    { image: 'assets/image1.jpg', likes: '2.2w' },
    { image: 'assets/image2.jpg', likes: '1.6w' },
    { image: 'assets/image3.jpg', likes: '10.3w' },
    // 添加更多项目
  ];

  constructor() {}
  selectTab(tab: string) {
    this.selectedTab = tab;
  }

}