Doing stuff

This commit is contained in:
2025-07-06 10:26:33 +02:00
parent af756e2154
commit ebb5bf9a52
15 changed files with 968 additions and 465 deletions

View File

@ -1,59 +1,59 @@
// types/commissions.ts
// // types/commissions.ts
export interface CommissionType {
name: string
description: string
}
// export interface CommissionType {
// name: string
// description: string
// }
export interface CommissionOptionType {
name: string
basePrice: number
}
// export interface CommissionOptionType {
// name: string
// basePrice: number
// }
export interface CommissionOption {
type: CommissionOptionType
price: number
}
// export interface CommissionOption {
// type: CommissionOptionType
// price: number
// }
export interface CommissionExtraType {
name: string
description: string
pricePercent?: number
price?: number
priceRange?: string
}
// 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 CommissionExtra {
// type: CommissionExtraType
// price?: number
// pricePercent?: number
// priceRange?: string
// }
export interface Commission {
type: CommissionType
options: CommissionOption[]
extras: CommissionExtra[]
}
// 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[]
}
// 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[]
// }