import React from 'react';

import { Switch as MUISwitch } from '@mui/material';

export const Switch: React.FC<{
  disabled?: boolean;
  checked: boolean;
  onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
}> = ({ disabled, checked, onChange }) => {
  return (
    <MUISwitch disabled={disabled} checked={checked} onChange={onChange} />
  );
};
