1
0
Fork 1
mirror of https://github.com/SomboChea/ui synced 2024-05-12 14:31:38 +07:00
verdaccio-ui/src/components/Link/index.js

17 lines
336 B
JavaScript
Raw Normal View History

2019-02-03 17:23:33 +07:00
/**
* @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;