refactor: api routes

This commit is contained in:
Daniel Soares committed 2021-12-24 11:48:37 -03:00
1 parent 19aa8d2311
commit 165c26af3f
42 files changed
+622 -506

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import { TextareaWrapper, Label, Wrapper } from './styles'
import type { TextareaHTMLAttributes } from 'react'
type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
label?: string
}
export function Textarea({ label, ...rest }: TextareaProps) {
return (
<Wrapper>
{!!label && <Label>{label}</Label>}
<TextareaWrapper {...rest} />
</Wrapper>
)
}