JournalsList: show journal color
parent
399724f7e4
commit
643010ccfe
@ -0,0 +1,15 @@
|
||||
import * as React from 'react';
|
||||
|
||||
interface PropsType {
|
||||
color: string;
|
||||
size?: number | string;
|
||||
style?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export default function ColorBox(props: PropsType) {
|
||||
const size = props.size ?? 64;
|
||||
const style = { ...props.style, backgroundColor: props.color, width: size, height: size };
|
||||
return (
|
||||
<div style={style} />
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue