mirror of
https://github.com/dsoaress/link-free.git
synced 2026-08-17 06:56:04 +01:00
13 lines
340 B
TypeScript
13 lines
340 B
TypeScript
import { ButtonHTMLAttributes, ReactNode } from 'react'
|
|
|
|
import { ButtonVariantProps, Wrapper } from './styles'
|
|
|
|
type ButtonProps = ButtonVariantProps &
|
|
ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
children: ReactNode
|
|
}
|
|
|
|
export function Button({ children, ...rest }: ButtonProps) {
|
|
return <Wrapper {...rest}>{children}</Wrapper>
|
|
}
|