Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { Component, type ReactNode } from "react"import { SpinToWinWheel } from "@/components/spin-to-win-wheel"import { Button } from "@/components/ui/button"import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"class WheelBoundary extends Component<{ children: ReactNode }, { failed: boolean }> { state = { failed: false } static getDerivedStateFromError() { return { failed: true } } render() { if (this.state.failed) { return ( <Card className="w-full max-w-sm"> <CardHeader> <CardTitle>Spin for a Discount</CardTitle> </CardHeader> <CardContent> <div className="rounded-md border p-6 text-center text-sm text-muted-foreground"> 3 free spins, real savings </div> </CardContent> <CardFooter> <Button className="w-full" disabled> Spin Wheel </Button> </CardFooter> </Card> ) } return this.props.children }}export default function SpinToWinDemo() { return ( <WheelBoundary> <SpinToWinWheel theme="ecommerce" className="w-full max-w-sm" /> </WheelBoundary> )}