()
| 5 | import { WorktreeExitDialog } from './WorktreeExitDialog.js'; |
| 6 | const GOODBYE_MESSAGES = ['Goodbye!', 'See ya!', 'Bye!', 'Catch you later!']; |
| 7 | function getRandomGoodbyeMessage(): string { |
| 8 | return sample(GOODBYE_MESSAGES) ?? 'Goodbye!'; |
| 9 | } |
| 10 | type Props = { |
| 11 | onDone: (message?: string) => void; |
| 12 | onCancel?: () => void; |