School Commit Init
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import Drug from "../interfaces/Drug";
|
||||
import Manufacturer from "../interfaces/Manufacturer";
|
||||
|
||||
export const getEmptyDrug = (): Drug => {
|
||||
return {
|
||||
id: -1,
|
||||
name: '',
|
||||
stock: 0,
|
||||
price: 0,
|
||||
manufacturer: '',
|
||||
description: '',
|
||||
sideEffects: '',
|
||||
interactions: '',
|
||||
dosage: '',
|
||||
contraindications: '',
|
||||
warnings: '',
|
||||
storage: '',
|
||||
pregnancy: '',
|
||||
breastfeeding: '',
|
||||
overdose: '',
|
||||
} as Drug;
|
||||
}
|
||||
|
||||
export const getEmptyManufacturer = (): Manufacturer => {
|
||||
return {
|
||||
id: -1,
|
||||
name: '',
|
||||
address: '',
|
||||
contact: '',
|
||||
totalCount: 0,
|
||||
} as Manufacturer;
|
||||
}
|
||||
|
||||
export default getEmptyDrug;
|
||||
Reference in New Issue
Block a user