import { useState } from 'react'; import { Button } from '../core/Button'; import { Select } from '../core/Select'; import { HStack, VStack } from '../core/Stacks'; interface Props { branches: string[]; onCancel: () => void; onSelect: (branch: string) => void; selectText: string; } export function BranchSelectionDialog({ branches, onCancel, onSelect, selectText }: Props) { const [branch, setBranch] = useState('__NONE__'); return ( { e.preventDefault(); onSelect(branch); }} >