refactor(web/dialog): Separate fields into individual components

This commit is contained in:
Luke
2022-05-03 15:08:28 +02:00
parent 64a1ad9343
commit 48dae99cc0
8 changed files with 153 additions and 75 deletions

View File

@@ -0,0 +1,11 @@
import { IconProp } from "@fortawesome/fontawesome-svg-core";
type RowType = "input" | "checkbox" | "select";
export interface Row {
type: RowType;
label: string;
options?: { value: string; label: string }[];
password?: boolean;
icon?: IconProp;
}