Files
plagiat/src/features/modals/siModal/utils/tyeps.ts
2026-04-07 19:02:03 +05:00

25 lines
462 B
TypeScript

export interface UploadedFile {
file: File;
name: string;
sizeKB: number;
word_count: number;
total_price: number;
status: 'uploading' | 'done' | 'error';
}
export interface PricingConfig {
pricePerWord: number; // in so'm
minimumPayment: number; // in so'm
}
export interface FileUploadModalProps {
isOpen: boolean;
onClose: () => void;
pricing?: PricingConfig;
}
export interface WordCountResult {
count: number;
error?: string;
}