()
| 1 | export const Home = () => { |
| 2 | const examples = [ |
| 3 | { title: 'Pipe Run', href: '/demo/pipe-run' }, |
| 4 | { title: 'Pipe Run Stream', href: '/demo/pipe-run-stream' }, |
| 5 | { title: 'Chat Simple', href: '/demo/chat-simple' }, |
| 6 | { title: 'Chat Advanced', href: '/demo/chat-advanced' }, |
| 7 | { title: 'Tool Calling', href: '/demo/tool-calling' }, |
| 8 | { |
| 9 | title: 'Tool Calling: Pipes as Tools', |
| 10 | href: '/demo/pipe-run-pipes-as-tools', |
| 11 | }, |
| 12 | { title: 'Memory', href: '/demo/memory' }, |
| 13 | ]; |
| 14 | return ( |
| 15 | <div className="w-full max-w-md"> |
| 16 | <h1 className="text-3xl font-light text-gray-800 mb-8 text-center"> |
| 17 | Examples |
| 18 | </h1> |
| 19 | <ul className="space-y-3"> |
| 20 | {examples.map((example, index) => ( |
| 21 | <li key={index}> |
| 22 | <a |
| 23 | href={example.href} |
| 24 | className="block bg-white rounded-xl p-4 shadow-sm hover:shadow-md transition-shadow duration-200 border border-gray-100" |
| 25 | > |
| 26 | <div className="flex items-center justify-between"> |
| 27 | <span className="text-lg text-gray-700"> |
| 28 | {example.title} |
| 29 | </span> |
| 30 | <svg |
| 31 | className="w-5 h-5 text-gray-400" |
| 32 | fill="none" |
| 33 | strokeLinecap="round" |
| 34 | strokeLinejoin="round" |
| 35 | strokeWidth="2" |
| 36 | viewBox="0 0 24 24" |
| 37 | stroke="currentColor" |
| 38 | > |
| 39 | <path d="M9 5l7 7-7 7"></path> |
| 40 | </svg> |
| 41 | </div> |
| 42 | </a> |
| 43 | </li> |
| 44 | ))} |
| 45 | </ul> |
| 46 | </div> |
| 47 | ); |
| 48 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected