1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-06-28 22:15:32 +07:00
verdaccio-ui/src/webui/components/Link/index.js
2019-04-04 21:23:40 +02:00

17 lines
336 B
JavaScript

/**
* @prettier
* @flow
*/
import React from 'react';
import type { Node } from 'react';
import { IProps } from './types';
const Link = ({ children, to = '#', blank = false, ...props }: IProps): Node => (
<a href={to} target={blank ? '_blank' : '_self'} {...props}>
{children}
</a>
);
export default Link;