feat: test ISR

This commit is contained in:
Daniel Soares
2021-12-13 17:12:51 -03:00
parent aaaaedb73c
commit 2a1164d1fd
26 changed files with 295 additions and 192 deletions

View File

@@ -1,12 +1,18 @@
import { ButtonHTMLAttributes, ReactNode } from 'react'
import type { ButtonHTMLAttributes, ReactNode } from 'react'
import { ButtonVariantProps, Wrapper } from './styles'
import type { ButtonVariantProps } from './styles'
import { Wrapper } from './styles'
type ButtonProps = ButtonVariantProps &
ButtonHTMLAttributes<HTMLButtonElement> & {
children: ReactNode
}
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
children: ReactNode
theme?: ButtonVariantProps['theme']
schema?: ButtonVariantProps['schema']
outline?: ButtonVariantProps['outline']
font?: ButtonVariantProps['font']
}
export function Button({ children, ...rest }: ButtonProps) {
return <Wrapper {...rest}>{children}</Wrapper>
}
export type { ButtonVariantProps }