This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // GenerateResponse.swift | |
| // KingStudio | |
| // | |
| // Created by Max on 30.12.2025. | |
| // | |
| import Foundation | |
| struct GenerateResponse: Decodable { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }) => { |