diff --git a/src/App.tsx b/src/App.tsx
index c35c8bde1..3d695b377 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -168,6 +168,19 @@ export const App: React.FC = () => {
});
};
+ function getItemsLeftCountMessage() {
+ switch (activeTodos.length) {
+ case 1:
+ return '1 item left';
+
+ case 0:
+ return 'Everything is done';
+
+ default:
+ return `${activeTodos.length} items left`;
+ }
+ }
+
if (!USER_ID) {
return ;
}
@@ -224,7 +237,7 @@ export const App: React.FC = () => {