diff options
Diffstat (limited to 'src/components/BlockLink.tsx')
| -rw-r--r-- | src/components/BlockLink.tsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/BlockLink.tsx b/src/components/BlockLink.tsx new file mode 100644 index 0000000..f2724e7 --- /dev/null +++ b/src/components/BlockLink.tsx @@ -0,0 +1,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; |
