);
} else if (item.value instanceof Raw) {
return formatU8a(item.value);
}
return {item.value.toString().split(',').join(', ')}
;
}
function Logs ({ value }: Props): React.ReactElement | null {
const { t } = useTranslation();
const headerRef = useRef<([React.ReactNode?, string?, number?] | false)[]>([
[t('logs'), 'start']
]);
return (
{value?.map((log, index) => (
|
{formatItem(log)}
|
))}
);
}
export default React.memo(Logs);