From 98446f3f30dbc0bc8fe55bae1e4729cd023dbf71 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 16 Nov 2024 12:37:10 -0400 Subject: data: factor out inputNotFoundMode --- src/data/composite/wiki-data/inputNotFoundMode.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/data/composite/wiki-data/inputNotFoundMode.js (limited to 'src/data/composite/wiki-data/inputNotFoundMode.js') 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', + }); +} -- cgit 1.3.0-6-gf8a5