25 lines
462 B
TypeScript
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;
|
|
}
|