Add loading state and style constants, enhance API key modal with delete

This commit is contained in:
Riccardo Giorato
2025-12-26 12:15:01 +01:00
parent 14b247ffaa
commit 66b252fb2e
17 changed files with 379 additions and 198 deletions
+4 -1
View File
@@ -12,15 +12,18 @@ interface CreateButtonProps {
prompt: string;
style: string;
characterFiles: File[];
isLoading: boolean;
setIsLoading: (loading: boolean) => void;
}
export function CreateButton({
prompt,
style,
characterFiles,
isLoading,
setIsLoading,
}: CreateButtonProps) {
const router = useRouter();
const [isLoading, setIsLoading] = useState(false);
const [loadingStep, setLoadingStep] = useState(0);
const { toast } = useToast();
const { uploadToS3 } = useS3Upload();