aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/BlockLink.tsx
blob: f2724e7e4db64a3fe9ea6cee5bb2a4f352713180 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import React from "react";
import { BlockAnchor, BlockBody } from "../styles";

const BlockLink = ({ children, ...attributes }) => {
  return (
    <BlockBody theme={{ link: true }}>
      <BlockAnchor {...attributes}>{children}</BlockAnchor>
    </BlockBody>
  );
};

export default BlockLink;