import React , { forwardRef } from "react" ; import cl from "classnames" ; interface RowProps extends React . HTMLAttributes < HTMLTableRowElement > { default selected ? : boolean ; } export interface RowType extends React . ForwardRefExoticComponent < RowProps & React . RefAttributes < HTMLTableRowElement > > { } const Row = forwardRef ( ( { className , selected = false , ... rest } , ref ) => ( < tr { ... rest } ref = { ref } className = { cl ( "navds-table__row" , className , { "navds-table__row--selected" : selected , } ) } / > ) ) ; export default Row ;