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