import type { Paginated } from '@/types/common';
import type { MediaItem } from '@/types/media';

export type ExpenseListItem = {
    id: number;
    amount: number;
    amount_formatted: string;
    description: string;
    created_at_formatted: string;
    created_by_name: string;
    photos?: MediaItem[];
};

export type ExpenseFormData = {
    amount: string;
    description: string;
};

export type ExpenseFilters = {
    search: string;
    sort?: string;
    direction?: 'asc' | 'desc' | null;
};

export type PaginatedExpenses = Paginated<ExpenseListItem>;
