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

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;
    photos: File[];
    remove_media_ids: number[];
};

export type PaginatedExpenses = Paginated<ExpenseListItem>;
