import apiClient from "@_api/apiClient"; import type { ThemeCreateRequest, ThemeCreateResponse, ThemeRetrieveListResponse } from "./themeTypes"; export const createTheme = async (data: ThemeCreateRequest): Promise => { return await apiClient.post('/themes', data, true); }; export const fetchThemes = async (): Promise => { return await apiClient.get('/themes', true); }; export const mostReservedThemes = async (count: number = 10): Promise => { return await apiClient.get(`/themes/most-reserved-last-week?count=${count}`, false); }; export const delTheme = async (id: number): Promise => { return await apiClient.del(`/themes/${id}`, true); };