Skip to content

Instantly share code, notes, and snippets.

import Foundation
final class CreditsService {
static let shared = CreditsService()
private init() {}
func buyCredits(dollars: Int) async throws {
let transaction = try await StoreManager.shared.purchase(dollars: dollars)
// Obtain the signed JWS representation of the transaction for server-side verification
//
// GenerateResponse.swift
// KingStudio
//
// Created by Max on 30.12.2025.
//
import Foundation
struct GenerateResponse: Decodable {
import React from 'react';
import { StyleSheet, View, Text, Image, TouchableOpacity, FlatList } from 'react-native';
import { ExternalLink, Calendar } from 'lucide-react-native';
interface HistoryGalleryProps {
items: { id: string; original: string; result: string; timestamp: number }[];
}
export const HistoryGallery: React.FC<HistoryGalleryProps> = ({ items }) => {