diff --git a/src/lib/helpers/formatStatus/index.ts b/src/lib/helpers/formatStatus/index.ts new file mode 100644 index 0000000..3ce4a28 --- /dev/null +++ b/src/lib/helpers/formatStatus/index.ts @@ -0,0 +1,14 @@ +export const formatStatus = (status: Gift['status']) => { + switch (status) { + case 'planned': + return 'Planowane'; + case 'decided': + return 'Do kupienia'; + case 'bought': + return 'Kupione'; + case 'ready': + return 'Do spakowania'; + case 'wrapped': + return 'Gotowe'; + } +};