import client from './client'; export interface ThemeConfig { primary_color?: string; logo_url?: string; sidebar_style?: 'light' | 'dark'; } export async function getTheme() { const { data } = await client.get<{ success: boolean; data: ThemeConfig }>( '/config/themes', ); return data.data; } export async function updateTheme(theme: ThemeConfig) { const { data } = await client.put<{ success: boolean; data: ThemeConfig }>( '/config/themes', theme, ); return data.data; }