components.Table.components.selection.radio.tsx Maven / Gradle / Ivy
The newest version!
import React, { useCallback, VFC } from 'react'
import { InputRadio } from '@i-novus/n2o-components/lib/inputs/Radio'
import { RadioCellProps } from '../../types/props'
import { useTableActions } from '../../provider/TableActions'
export const RadioCell: VFC = ({ rowValue, isSelectedRow }) => {
const { selectSingleRow } = useTableActions()
const onSelect = useCallback(() => {
selectSingleRow(rowValue)
}, [rowValue, selectSingleRow])
return (
event.stopPropagation()}>
)
}