import React, { useId } from 'react' import classnames from 'classnames' import { FieldGroup } from '~components/FieldGroup' import { Label } from '~components/Label' import { ToggleSwitch, type ToggleSwitchProps, type ToggledStatus, } from '../ToggleSwitch/ToggleSwitch' import styles from './ToggleSwitchField.module.css' export type ToggleSwitchFieldProps = { labelText: React.ReactNode labelPosition?: 'start' | 'end' toggledStatus?: ToggledStatus disabled?: boolean reversed?: boolean inline?: boolean fullWidth?: boolean } & ToggleSwitchProps /** * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3075638160/Toggle+Switch Guidance} | * {@link https://cultureamp.design/?path=/docs/components-toggleswitch-ield--docs Storybook} */ export const ToggleSwitchField = ({ id: propsId, labelText, labelPosition = 'start', toggledStatus, disabled, reversed, inline, fullWidth, ...restProps }: ToggleSwitchFieldProps): JSX.Element => { const fallbackId = useId() const id = propsId ?? fallbackId return (
) } ToggleSwitchField.displayName = 'ToggleSwitchField'