import { StaffProfile } from './staff'; export interface Employee extends Omit { id: string; profilePic: string; } // Company-wide settings export const companySettings = { address: "3-2, Block D2, Jalan PJU 1A/39\nDataran Prima\n47301 Petaling Jaya\nMalaysia", logoPath: "/logo.png", website: "https://rooftop.my" }; // Employee-specific data only export const employees: Employee[] = [ { id: "john-doe", name: "John Doe", title: "Senior Energy Consultant", phone: "+60 12-345 6789", whatsapp: "60123456789", email: "john.doe@rooftop.my", linkedin: "https://linkedin.com/in/johndoe", profilePic: "/profilepic.png" }, { id: "jane-smith", name: "Jane Smith", title: "Energy Analyst", phone: "+60 12-345 6790", whatsapp: "60123456790", email: "jane.smith@rooftop.my", linkedin: "https://linkedin.com/in/janesmith", profilePic: "/profilepic.png" }, { id: "ahmad-ali", name: "Ahmad Ali", title: "Renewable Energy Specialist", phone: "+60 12-345 6791", whatsapp: "60123456791", email: "ahmad.ali@rooftop.my", linkedin: "https://linkedin.com/in/ahmadali", profilePic: "/profilepic.png" }, { id: "sarah-wong", name: "Sarah Wong", title: "Solar Energy Engineer", phone: "+60 12-345 6792", whatsapp: "60123456792", email: "sarah.wong@rooftop.my", linkedin: "https://linkedin.com/in/sarahwong", profilePic: "/profilepic.png" } ]; export function getEmployeeById(id: string): Employee | undefined { return employees.find(emp => emp.id === id); } export function getAllEmployees(): Employee[] { return employees; } // Helper function to get complete employee profile with company settings export function getCompleteEmployeeProfile(employee: Employee): StaffProfile { return { ...employee, address: companySettings.address, logoPath: companySettings.logoPath, website: companySettings.website }; } export default employees;