UI enhancements, i18n, history drawer, and requested features
This commit is contained in:
+2
-1
@@ -108,10 +108,11 @@ export interface StyleRandomResponse {
|
||||
export async function randomStyle(
|
||||
mode: "normal" | "crazy",
|
||||
signal?: AbortSignal,
|
||||
idea?: string,
|
||||
): Promise<string> {
|
||||
const data = await postJson<StyleRandomResponse>(
|
||||
"/api/style/random",
|
||||
{ mode },
|
||||
{ mode, idea: idea ?? "" },
|
||||
signal,
|
||||
);
|
||||
return data.style;
|
||||
|
||||
Reference in New Issue
Block a user