diff options
Diffstat (limited to 'src/components/BlockLink.tsx')
| -rw-r--r-- | src/components/BlockLink.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/BlockLink.tsx b/src/components/BlockLink.tsx index f2724e7..c0f2ad6 100644 --- a/src/components/BlockLink.tsx +++ b/src/components/BlockLink.tsx @@ -1,7 +1,12 @@ import React from "react"; -import { BlockAnchor, BlockBody } from "../styles"; +import { ThemedStyledFunction } from "styled-components"; +import { BlockAnchor, BlockBody, Theme } from "../styles"; -const BlockLink = ({ children, ...attributes }) => { +type BlockLinkProps = { + children: React.ReactNode; +} & ThemedStyledFunction<"a", Theme>; + +const BlockLink = ({ children, ...attributes }: BlockLinkProps) => { return ( <BlockBody theme={{ link: true }}> <BlockAnchor {...attributes}>{children}</BlockAnchor> |
