import api from './api';
import type { DislikeEntry } from '../types';

export const quarantineService = {
  async list(): Promise<DislikeEntry[]> {
    const res = await api.get<DislikeEntry[]>('/dislikes');
    return res.data;
  },

  async restore(trackId: string): Promise<void> {
    await api.post(`/dislikes/${trackId}/restore`);
  },

  async hardDelete(trackId: string): Promise<void> {
    await api.delete(`/dislikes/${trackId}`);
  },
};
