import Option from '../common/Option'; import RadioButton from '../common/RadioButton'; import { RadioButtonProps } from '../common/RadioButton/RadioButton'; export interface RadioOptionProps extends Required, 'id' | 'name' | 'onChange'>>, Omit, 'readOnly' | 'id' | 'name' | 'onChange'> { 'aria-label'?: string; media?: React.ReactNode; title: React.ReactNode; content?: React.ReactNode; complex?: boolean; showMediaCircle?: boolean; showMediaAtAllSizes?: boolean; isContainerAligned?: boolean; } /** * @deprecated Use `` instead (run codemod to migrate: **`npx @wise/wds-codemods@latest list-item`**). * @deprecatedSince 46.104.0 * @see [Source](../listItem/ListItem.tsx) * @see [Storybook](https://storybook.wise.design/?path=/docs/content-listitem--docs) * @see [Design docs](https://wise.design/components/list-item) * @see [Release notes](https://transferwise.atlassian.net/wiki/spaces/DS/pages/3647251055/List+Item+release+notes) */ function RadioOption({ 'aria-label': ariaLabel, media, title, content, id, name, checked, onChange, complex, disabled, value = '' as T, showMediaCircle, showMediaAtAllSizes, isContainerAligned, }: RadioOptionProps) { return (