import React from "react"; type HexValueProps = { value: string; }; const HexValue: React.FC = ({ value }) => { const shards: string[] = [value.slice(0, 10)]; for (let i = 10; i < value.length; i += 8) { shards.push(value.slice(i, i + 8)); } return ( <> {shards.map((s, i) => ( {s} ))} ); }; export default React.memo(HexValue);