import { z } from "zod";

/**
 * URL search params for the AMQ browse page.
 *
 * Intended usage:
 * - Client: `useSearchParams(AmqBrowseSearchSchema, ...)`
 * - Server (optional): `validateSearchParams(url, AmqBrowseSearchSchema, ...)`
 */
export const AmqBrowseSearchSchema = z.object({
	/**
	 * Free-text query for anime name search.
	 */
	q: z.string().default(""),
});

export type AmqBrowseSearch = z.infer<typeof AmqBrowseSearchSchema>;
