mirror of
https://github.com/captbaritone/webamp.git
synced 2026-11-07 17:09:05 -10:00
10 lines
297 B
React
10 lines
297 B
React
import React from 'react';
|
|
|
|
module.exports = (props) => {
|
|
const char = '' + props.children;
|
|
const className = `character character-${char.toLowerCase().charCodeAt(0)}`;
|
|
return <div {...props} className={className}>{props.children}</div>;
|
|
};
|
|
|
|
// TODO: Require that props.children be a string
|