Files
firegex-traffic-viewer/frontend/src/components/Firewall/ProtocolSelector.tsx

24 lines
597 B
TypeScript
Raw Normal View History

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',
}
]}
2023-09-25 18:10:12 +02:00
size={props.size?props.size:"xs"}
{...props}
/>
)