« get me outta code hell

data: factor out inputNotFoundMode - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/composite/wiki-data/inputNotFoundMode.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-11-16 12:37:10 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-11-17 13:39:59 -0400
commit98446f3f30dbc0bc8fe55bae1e4729cd023dbf71 (patch)
tree4f1be795a4eeee36397d850f1b049f00db2dcb17 /src/data/composite/wiki-data/inputNotFoundMode.js
parentaa800e588c498c2a454fa8d996bb679b5cfe5bb7 (diff)
data: factor out inputNotFoundMode
Diffstat (limited to 'src/data/composite/wiki-data/inputNotFoundMode.js')
-rw-r--r--src/data/composite/wiki-data/inputNotFoundMode.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/data/composite/wiki-data/inputNotFoundMode.js b/src/data/composite/wiki-data/inputNotFoundMode.js
new file mode 100644
index 00000000..d16b2472
--- /dev/null
+++ b/src/data/composite/wiki-data/inputNotFoundMode.js
@@ -0,0 +1,9 @@
+import {input} from '#composite';
+import {is} from '#validators';
+
+export default function inputNotFoundMode() {
+  return input({
+    validate: is('exit', 'filter', 'null'),
+    defaultValue: 'filter',
+  });
+}