profile page ui complated
This commit is contained in:
24
src/features/modals/siModal/utils/tyeps.ts
Normal file
24
src/features/modals/siModal/utils/tyeps.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
export interface UploadedFile {
|
||||
file: File;
|
||||
name: string;
|
||||
sizeKB: number;
|
||||
wordCount: 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;
|
||||
onSubmit: (documentName: string, file: File, wordCount: number) => void;
|
||||
pricing?: PricingConfig;
|
||||
}
|
||||
|
||||
export interface WordCountResult {
|
||||
count: number;
|
||||
error?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user