Files
grafana/packages/grafana-ui/src/components/Legend/SeriesIcon.tsx
2019-05-14 08:46:35 +02:00

11 lines
311 B
TypeScript

import React from 'react';
import { cx } from 'emotion';
export interface SeriesIconProps {
color: string;
className?: string;
}
export const SeriesIcon: React.FunctionComponent<SeriesIconProps> = ({ color, className }) => {
return <i className={cx('fa', 'fa-minus', className)} style={{ color }} />;
};