g1t/apps/web/app/components/account-settings.tsx
Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| status.g1t.sh with incident management, invites that land you in the workspace, settings as pages, usage without quotas | 1 | import { Form } from "react-router"; |
| 2 | ||
| 3 | import { Button } from "./ui"; | |
| 4 | ||
| 5 | /** One row's way out of a list in your settings: a key, a token, an application. */ | |
| 6 | export function DeleteButton({ | |
| 7 | intent, | |
| 8 | id, | |
| 9 | label = "Delete", | |
| 10 | }: { | |
| 11 | intent: string; | |
| 12 | id: string; | |
| 13 | label?: string; | |
| 14 | }) { | |
| 15 | return ( | |
| 16 | <Form method="post" className="ml-auto"> | |
| 17 | <input type="hidden" name="intent" value={intent} /> | |
| 18 | <input type="hidden" name="id" value={id} /> | |
| 19 | <Button variant="quiet" type="submit"> | |
| 20 | {label} | |
| 21 | </Button> | |
| 22 | </Form> | |
| 23 | ); | |
| 24 | } |