// 게시판 상태 타입
export type BoardStatus = 'active' | 'inactive';

// 대상 타입 (전사, 부서 등)
export type BoardTarget = 'all' | 'department';

// 게시판 타입
export interface Board {
  id: string;
  target: BoardTarget;
  targetName?: string; // 부서명 (target이 department일 때)
  boardName: string;
  status: BoardStatus;
  authorId: string;
  authorName: string;
  createdAt: string;
  updatedAt: string;
}

// 게시판 폼 데이터 타입
export interface BoardFormData {
  target: BoardTarget;
  targetName?: string;
  boardName: string;
  status: BoardStatus;
}

// 상태 라벨
export const BOARD_STATUS_LABELS: Record<BoardStatus, string> = {
  active: '사용함',
  inactive: '사용안함',
};

// 상태 색상
export const BOARD_STATUS_COLORS: Record<BoardStatus, string> = {
  active: 'bg-green-100 text-green-800 hover:bg-green-100',
  inactive: 'bg-gray-100 text-gray-800 hover:bg-gray-100',
};

// 대상 라벨
export const BOARD_TARGET_LABELS: Record<BoardTarget, string> = {
  all: '전사',
  department: '부서',
};

// 대상 옵션
export const BOARD_TARGETS = [
  { value: 'all' as BoardTarget, label: '전사' },
  { value: 'department' as BoardTarget, label: '부서' },
];

// Mock 부서 데이터
export const MOCK_DEPARTMENTS = [
  { id: 'd1', name: '영업부' },
  { id: 'd2', name: '개발부' },
  { id: 'd3', name: '인사부' },
  { id: 'd4', name: '경영지원부' },
];
