18 | {isClient 19 | ? `Slide ${Math.min(currentPage + 1, numPages)} / ${numPages}` 20 | : ""} 21 |
22 | ); 23 | } 24 | -------------------------------------------------------------------------------- /src/lib/providers/keys-context.tsx: -------------------------------------------------------------------------------- 1 | import React, { useContext } from "react"; 2 | 3 | interface KeysContextValue { 4 | apiKey: string; 5 | setApiKey: (apiKey: string) => void; 6 | } 7 | 8 | const KeysContext = React.createContext25 | {number} 26 |
27 |
10 | Please enter your{" "}
11 |
38 | {config.brand.name} 39 |
40 |49 | {config.brand.handle} 50 |
51 |{fontsMap[fontId].name}
76 |161 | {body} 162 |
163 | ) 164 | }) 165 | FormMessage.displayName = "FormMessage" 166 | 167 | export { 168 | useFormField, 169 | Form, 170 | FormItem, 171 | FormLabel, 172 | FormControl, 173 | FormDescription, 174 | FormMessage, 175 | FormField, 176 | } 177 | -------------------------------------------------------------------------------- /src/components/typography.tsx: -------------------------------------------------------------------------------- 1 | import { cn } from "@/lib/utils"; 2 | import React from "react"; 3 | 4 | export function TypographyH1({ 5 | children, 6 | className = "", 7 | }: { 8 | children: React.ReactNode; 9 | className?: string; 10 | }) { 11 | return ( 12 |89 | {children} 90 |
91 | ); 92 | } 93 | 94 | export function TypographyBlockquote({ 95 | children, 96 | className = "", 97 | }: { 98 | children: React.ReactNode; 99 | className?: string; 100 | }) { 101 | return ( 102 |103 | {children} 104 |105 | ); 106 | } 107 | 108 | // TODO: Add table styles 109 | 110 | export function TypographyList({ 111 | children, 112 | className = "", 113 | }: { 114 | children: React.ReactNode; 115 | className?: string; 116 | }) { 117 | return ( 118 |
{children}
173 | ); 174 | } 175 | 176 | export function TypographyLarge({ 177 | children, 178 | className = "", 179 | }: { 180 | children: React.ReactNode; 181 | className?: string; 182 | }) { 183 | return ( 184 |{children}
211 | ); 212 | } 213 | 214 | export function TypographyFieldName({ 215 | children, 216 | className = "", 217 | }: { 218 | children: React.ReactNode; 219 | className?: string; 220 | }) { 221 | return ( 222 |223 | {children} 224 |
225 | ); 226 | } 227 | --------------------------------------------------------------------------------