diff options
| author | Haishan <[email protected]> | 2020-07-01 22:06:26 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2020-07-04 17:58:56 +0800 |
| commit | 32bed273c83f0593187110d2b08a0f9ec5a7efd7 (patch) | |
| tree | 0b47da752de3ee0d87945c1122b2cf9d3bf8043f /src/components/rules/TextFilter.tsx | |
| parent | 55e928a87f561ab927774834b50e099a0758522d (diff) | |
feat: support rule provider
Diffstat (limited to 'src/components/rules/TextFilter.tsx')
| -rw-r--r-- | src/components/rules/TextFilter.tsx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/rules/TextFilter.tsx b/src/components/rules/TextFilter.tsx new file mode 100644 index 0000000..a3cc29e --- /dev/null +++ b/src/components/rules/TextFilter.tsx @@ -0,0 +1,18 @@ +import * as React from 'react'; +import { useTextInut } from 'src/hooks/useTextInput'; +import { ruleFilterText } from 'src/store/rules'; + +import shared from '../shared.module.css'; + +export function TextFilter() { + const [onChange, text] = useTextInut(ruleFilterText); + return ( + <input + className={shared.input} + type="text" + value={text} + onChange={onChange} + placeholder="Filter" + /> + ); +} |
