import React from 'react' import { t } from 'ttag' interface ColorPickerProps { colors: string[] onPick: (color: string) => void } export default ({ colors, onPick }: ColorPickerProps) => { return (
{colors.map(color => { return (
onPick(color)} onKeyPress={event => { if (event.key === 'Enter') onPick(color) }} /> ) })}
) }