import { Canvas, Meta, Story, ArgsTable } from "@storybook/addon-docs";
import {
Examples,
Example,
Note,
Title,
CustomArgsTable,
VariantRow,
VariantsTable,
} from "@calcom/storybook/components";
import { FiPlus } from "../../icon";
import Select from "./components/Select";
export const options = [
{
//4
label: "Cal.com Inc",
options: [
{ value: "UserA", label: "Pro" }, // 5
{ value: "UserB", label: "Teampro" }, // 6
{ value: "UserC", label: "Example" },
{ value: "UserD", label: "Admin", disabled: true },
],
},
{
// 5
label: "Acme Inc",
options: [
{ value: "UserE", label: "Acme Pro" }, // 1 == 6
{ value: "UserF", label: "Acme Teampro" },
{ value: "UserG", label: "Acme example" },
{ value: "UserH", label: "Acme Admin", disabled: true },
],
},
];
export const SelectWithState = (...args) => {
const [value, setValue] = React.useState(options[0].options[0]);
return