mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 23:43:45 +02:00
refact(header): extract DiscordButton to its own component
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
import React from "react"
|
||||
import React, { PropsWithChildren } from "react"
|
||||
import * as SC from "./styles"
|
||||
|
||||
function DiscordButton({
|
||||
lined = false,
|
||||
children,
|
||||
}: React.PropsWithChildren<{ lined: boolean }>) {
|
||||
function DiscordButton({ children }: PropsWithChildren<{}>) {
|
||||
return (
|
||||
<button>
|
||||
<div>{children}</div>
|
||||
</button>
|
||||
<SC.DiscordButtonWrapper>
|
||||
<SC.StyledDiscordLogo /> {children}
|
||||
</SC.DiscordButtonWrapper>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user