import { VuiSpacer } from "../spacer/Spacer";
import { VuiText } from "../typography/Text";
import { VuiTextColor } from "../typography/TextColor";
import { VuiFlexContainer } from "../flex/FlexContainer";
import { VuiFlexItem } from "../flex/FlexItem";
import { VuiLinkInternal } from "../link/Link";
import { VuiBadge } from "../badge/Badge";
import { VuiToggle } from "../toggle/Toggle";
type Props = {
title: string;
label: string;
badge?: string;
helpUrl?: string;
description?: React.ReactNode;
isEnabled?: boolean;
onToggle?: () => void;
children?: React.ReactNode;
};
export const VuiSetting = ({
title,
label,
badge,
helpUrl,
description,
isEnabled,
onToggle,
children,
...rest
}: Props) => {
return (
<>
{title}
{badge && (
{badge}
)}
{helpUrl && (
Learn more
)}
{description && (
<>
{description}
>
)}
{isEnabled && children && (
<>
{children}
>
)}
>
);
};