feat: refacotor ui

This commit is contained in:
ferdiansyah783
2025-08-08 01:49:00 +07:00
parent 687f59a9fa
commit 7beee4c3a1
19 changed files with 196 additions and 91 deletions
+38
View File
@@ -0,0 +1,38 @@
export type Unit = {
id: string
organization_id: string
outlet_id: string
name: string
abbreviation: string
is_active: boolean
created_at: string
updated_at: string
}
export type IngredientItem = {
id: string
organization_id: string
outlet_id: string
name: string
unit_id: string
cost: number
stock: number
is_semi_finished: boolean
is_active: boolean
metadata: Record<string, unknown> // bisa diganti jika metadata memiliki struktur spesifik
created_at: string
updated_at: string
unit: Unit
}
export type Pagination = {
page: number
limit: number
total_count: number
total_pages: number
}
export type Ingredients = {
data: IngredientItem[]
pagination: Pagination
}