import { ActionIcon, Group, Switch, Tooltip } from '@mantine/core'; import { FiPower, FiTrash } from 'react-icons/fi'; import { switchClasses, toolTipClasses } from 'styles'; export function ManagementPill({ enabled, onChange, openModal, label = ['Disabled', 'Enabled'], }: { enabled: number; onChange: any; openModal: () => void; label?: [string, string]; }) { return ( } onChange={onChange} /> | { openModal(); }} > ); }