// Accept/reject vote. `value` is 'accept', 'reject' or null; clicking the // active thumb clears it. Without onChange it renders read-only. export default function Thumbs({ value, onChange, small }) { const thumb = (verdict, glyph, label) => ( ) return ( {thumb('accept', '👍', 'Accept (P)')} {thumb('reject', '👎', 'Reject (X)')} ) }