File size: 628 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { HStack, Span } from "@chakra-ui/react"
import Link from "next/link"
import { LiaGithub } from "react-icons/lia"
import { LuArrowUpRight } from "react-icons/lu"

interface Props {
  href: string
}

export const EditPageButton = (props: Props) => {
  const { href } = props
  return (
    <HStack
      asChild
      focusRing="inside"
      focusRingWidth="2px"
      rounded="sm"
      color="fg.muted"
      css={{ "& svg": { fontSize: "lg" } }}
    >
      <Link href={href}>
        <LiaGithub />
        <Span fontSize="0.8em">Edit page on GitHub</Span>
        <LuArrowUpRight />
      </Link>
    </HStack>
  )
}