import { LoginLogType } from '@/constants/common';

export const PERIOD_TABS = [
	{ label: '오늘', value: LoginLogType.Today },
	{ label: '1주일', value: LoginLogType.Week },
	{ label: '1개월', value: LoginLogType.Month },
	{ label: '3개월', value: LoginLogType.QuarterYear },
	{ label: '6개월', value: LoginLogType.HalfYear },
];

export const WITHDRAW_STATUS_MAP: Record<string, { label: string; cls: string }> = {
	Pending:    { label: '대기',   cls: 'wallet__status--pending' },
	Processing: { label: '처리중', cls: 'wallet__status--processing' },
	Completed:  { label: '완료',   cls: 'wallet__status--completed' },
	Rejected:   { label: '거절',   cls: 'wallet__status--rejected' },
};

export const TRANSACTION_TYPE_MAP: Record<string, string> = {
	donation_received: '후원 수익',
	withdrawal: '출금',
	fee: '수수료',
	adjustment: '조정',
};

export const REVENUE_TYPE_MAP: Record<string, string> = {
	donation: '후원',
	crew_donation: '크루 후원',
};

export const WITHHOLDING_TAX_RATE = 0.033;
export const MIN_WITHDRAW_AMOUNT = 40000;