import * as React from 'react'; import { Input, SegmentedControl } from '@mantine/core'; import { EBarDirection } from '../interfaces'; interface BarDirectionProps { callback: (s: EBarDirection) => void; currentSelected: EBarDirection; } export function BarDirectionButtons({ callback, currentSelected }: BarDirectionProps) { return ( { callback(s as EBarDirection); }} data={[ { label: EBarDirection.VERTICAL, value: EBarDirection.VERTICAL }, { label: EBarDirection.HORIZONTAL, value: EBarDirection.HORIZONTAL }, ]} /> ); }