12 lines
243 B
JavaScript
12 lines
243 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import type { Props } from '../types';
|
|
|
|
export default function Link({ attributes, node, children }: Props) {
|
|
return (
|
|
<a {...attributes} href={node.data.get('href')}>
|
|
{children}
|
|
</a>
|
|
);
|
|
}
|