import { useState } from 'react';
import { action } from 'storybook/actions';
import { fn } from 'storybook/test';
import { FastFlag as FastFlagIcon } from '@transferwise/icons';
import { Header, Nudge, Section, Title, Typography } from '..';
import RadioOption, { RadioOptionProps } from './RadioOption';
/**
* > ⚠️ This component is **deprecated** and superseded by the [new ListItem component](?path=/docs/content-listitem--docs) with the [ListItem.Radio control](?path=/docs/content-listitem-listitem-radio--docs)
* (run codemod to migrate: **`npx @wise/wds-codemods@latest list-item`**).
*/
export default {
component: RadioOption,
title: 'Option/RadioOption',
tags: ['deprecated'],
argTypes: {
disabled: { control: 'boolean' },
secondary: { control: 'text' },
},
args: {
title: 'Radio option',
content: 'Button and icon are vertically centered.',
disabled: false,
},
};
export const Basic = (args: RadioOptionProps) => {
const [checked, setChecked] = useState(false);
return (