Add scaffold commision page

This commit is contained in:
2025-07-05 21:19:49 +02:00
parent ab40b6983a
commit af756e2154
39 changed files with 3155 additions and 120 deletions

59
src/types/commissions.ts Normal file
View File

@ -0,0 +1,59 @@
// types/commissions.ts
export interface CommissionType {
name: string
description: string
}
export interface CommissionOptionType {
name: string
basePrice: number
}
export interface CommissionOption {
type: CommissionOptionType
price: number
}
export interface CommissionExtraType {
name: string
description: string
pricePercent?: number
price?: number
priceRange?: string
}
export interface CommissionExtra {
type: CommissionExtraType
price?: number
pricePercent?: number
priceRange?: string
}
export interface Commission {
type: CommissionType
options: CommissionOption[]
extras: CommissionExtra[]
}
export interface CommissionCardProps {
type: {
key: string
name: string
description: string
}
options: {
key: string
name: string
price: number
}[]
extras: {
key: string
name: string
description: string
price?: number
pricePercent?: number
priceRange?: string
}[],
examples?: string[]
}