import React from "react"; import { View } from "react-native"; import { Label, Radio, RadioGroup, cn } from "heroui-native"; import { NText } from "./NText"; export interface RadioItem { label: string; value: string; } export interface NRadioProps { label?: string; isDisabled?: boolean; value: string; items: RadioItem[]; onValueChange: (value: string) => void; className?: string; labelClassName?: string; itemClassName?: string; } export const NRadio = React.memo( ({ label, value, items, isDisabled = false, onValueChange, className = "", labelClassName = "", itemClassName = "", }) => { return ( {label && {label}} {items.map((item) => ( ))} ); }, ); NRadio.displayName = "NRadio";