import { FiSettings } from 'react-icons/fi';

const BSMobilePrintSettings = () => {
  const ListPrinters = () => {
    var receiptText = '';
    var TypeCheck = 'WifiList';

    var textEncoded = encodeURI(receiptText);
    var scheme = 'pozoprinter';
    var packageName = 'com.example.pozoprinter';

    window.location.href =
      scheme +
      '://' +
      textEncoded +
      '#Intent;scheme=' +
      scheme +
      ';package=' +
      packageName +
      TypeCheck +
      ';end;';
  };

  return <FiSettings onClick={ListPrinters} />;
};
export default BSMobilePrintSettings;
