/* eslint-disable @typescript-eslint/no-explicit-any */ 'use client'; export async function getCustomCategories(): Promise<{ name: string; type: 'movie' | 'tv'; query: string; }[]> { const res = await fetch('/api/config/custom_category'); const data = await res.json(); return data.filter((item: any) => !item.disabled).map((category: any) => ({ name: category.name || '', type: category.type, query: category.query, })); }