src/components/Toolbar.tsx hinzugefügt
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
import React from "react";
|
||||||
|
|
||||||
|
export default function Toolbar({
|
||||||
|
regex,
|
||||||
|
setRegex,
|
||||||
|
live,
|
||||||
|
setLive
|
||||||
|
}) {
|
||||||
|
return (
|
||||||
|
<div style={{ marginTop: 10 }}>
|
||||||
|
<input
|
||||||
|
placeholder="Regex filter..."
|
||||||
|
value={regex}
|
||||||
|
onChange={(e) => setRegex(e.target.value)}
|
||||||
|
style={{ width: "100%" }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<label>
|
||||||
|
<input
|
||||||
|
type="checkbox"
|
||||||
|
checked={live}
|
||||||
|
onChange={(e) => setLive(e.target.checked)}
|
||||||
|
/>
|
||||||
|
Live
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user