import * as React from 'react'; import { Switch } from '@mantine/core'; interface HexSizeSwitchProps { callback: (b: boolean) => void; currentValue: boolean; } export function HexSizeSwitch({ callback, currentValue }: HexSizeSwitchProps) { return callback(event.currentTarget.checked)} label="Size scale" />; }