import { Meta } from "@storybook/react-vite";
import { useState } from "react";
import { Button } from "../button/Button";
import { Input } from "../fields/text/Input";
import { Checkbox } from "../fields/checkbox/Checkbox";
import { SelectLegacy } from "../select-legacy";
import { separatorVariant } from "../separator";
const meta = {
title: "Components/QuickSettings",
decorators: (Story) => (
),
} satisfies Meta;
export default meta;
const profileOptions = [
{ value: "car", label: "Voiture" },
{ value: "pedestrian", label: "Piéton" },
];
const directionOptions = [
{ value: "departure", label: "Départ" },
{ value: "arrival", label: "Arrivée" },
];
// const quicksettingConfig = {
// setting: "flex items-center justify-between first:text-gray-6 first:text-body-sm",
// };
export const Basic = () => {
const [profile, setProfile] = useState("car");
const [direction, setDirection] = useState("departure");
return (
Mode de transport
{
// @ts-ignore
setProfile(o.target.value);
}}
>
Sens de parcours
{
// @ts-ignore
setDirection(o.target.value);
}}
>
Passages autorisés
Péages
Ponts
Éviter
Sections à péage
Ponts
Tunnels
);
};
export const Full = () => {
const [profile, setProfile] = useState("car");
const [direction, setDirection] = useState("departure");
return (
Coordonnées
lon/lat
6.497886, 46.091857
Mode de transport
{
// @ts-ignore
setProfile(o.target.value);
}}
>
Sens de parcours
{
// @ts-ignore
setDirection(o.target.value);
}}
>
Passages autorisés
Péages
Ponts
Éviter
Sections à péage
Ponts
Tunnels
);
};