import { http } from '@/lib/http.ts';

// paste
export function paste(content: string, langue: string) {
  return http.post('/api/hid/paste', { content, langue });
}

// reset hid
export function reset() {
  return http.post('/api/hid/reset');
}

// get hid mode
export function getHidMode() {
  return http.get('/api/hid/mode');
}

// set hid mode
export function setHidMode(mode: string) {
  const data = {
    mode
  };
  return http.post('/api/hid/mode', data);
}
