Repository URL to install this package:
|
Version:
0.14.1 ▾
|
ui-component-library
/
src
/
components
/
abstractions
/
B2B
/
Approval
/
UserComment
/
renderProps.tsx
|
|---|
import React from 'react'
import { UserCommentProps } from './typings'
import {
ActionButton,
CommentBox,
ButtonWrapper,
CommentBoxWrapper,
Wrapper,
} from './styled'
function defaultRenderFormFields(props: UserCommentProps) {
return (
<React.Fragment>
<CommentBoxWrapper>
<CommentBox height={140} />
</CommentBoxWrapper>
<ButtonWrapper>
<ActionButton height={50} />
<ActionButton height={50} />
</ButtonWrapper>
</React.Fragment>
)
}
function defaultRenderWrapper(props: UserCommentProps) {
const { className, children } = props
const passThroughProps = Object.freeze({
className,
'data-qa': props['data-qa']
})
return <Wrapper {...passThroughProps}>{children}</Wrapper>
}
export {
defaultRenderFormFields,
defaultRenderWrapper,
}