add: created components for rules visualization
This commit is contained in:
20
frontend/src/components/Firewall/ModeSelector.tsx
Normal file
20
frontend/src/components/Firewall/ModeSelector.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { SegmentedControl, SegmentedControlProps } from "@mantine/core";
|
||||
import { RuleMode } from "./utils";
|
||||
|
||||
|
||||
|
||||
export const ModeSelector = (props:Omit<SegmentedControlProps, "data">) => (
|
||||
<SegmentedControl
|
||||
data={[
|
||||
{
|
||||
value: RuleMode.IN,
|
||||
label: 'IN',
|
||||
},
|
||||
{
|
||||
value: RuleMode.OUT,
|
||||
label: 'OUT',
|
||||
}
|
||||
]}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
Reference in New Issue
Block a user