All checks were successful
continuous-integration/drone/push Build is passing
25 lines
623 B
TypeScript
25 lines
623 B
TypeScript
import { DiskBusType } from "../../api/VMApi";
|
|
import { SelectInput } from "./SelectInput";
|
|
|
|
export function DiskBusSelect(p: {
|
|
editable: boolean;
|
|
value: DiskBusType;
|
|
label?: string;
|
|
onValueChange: (value: DiskBusType) => void;
|
|
size?: "medium" | "small";
|
|
disableUnderline?: boolean;
|
|
disableBottomMargin?: boolean;
|
|
}): React.ReactElement {
|
|
return (
|
|
<SelectInput
|
|
{...p}
|
|
label={p.label ?? "Disk bus type"}
|
|
options={[
|
|
{ label: "virtio", value: "Virtio" },
|
|
{ label: "sata", value: "SATA" },
|
|
]}
|
|
onValueChange={(v) => { p.onValueChange(v as any); }}
|
|
/>
|
|
);
|
|
}
|