mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
22 lines
421 B
TypeScript
22 lines
421 B
TypeScript
import React, { FC } from 'react';
|
|
|
|
export interface Props {
|
|
child: any;
|
|
}
|
|
|
|
const DropDownChild: FC<Props> = props => {
|
|
const { child } = props;
|
|
const listItemClassName = child.divider ? 'divider' : '';
|
|
|
|
return (
|
|
<li className={listItemClassName}>
|
|
<a href={child.url}>
|
|
{child.icon && <i className={child.icon} />}
|
|
{child.text}
|
|
</a>
|
|
</li>
|
|
);
|
|
};
|
|
|
|
export default DropDownChild;
|