Repository URL to install this package:
|
Version:
2.1.0 ▾
|
import React from 'react'
import { wording } from '@skava/ui/dist/words'
import { DashboardHeaderProps } from './typings'
import {
CreditLabel,
Price,
DashboardTitle,
} from './styled'
// rendering heading
function defaultRenderHeading(props: DashboardHeaderProps) {
return <DashboardTitle content={wording.dashBoardTitle} />
}
// rendering the credits fields
function defaultRenderAvailableCredits(props: DashboardHeaderProps) {
return (
<React.Fragment>
<CreditLabel content={wording.dashBoardCreditLabel} />
<Price content={props.creditPoint} />
</React.Fragment>
)
}
export {
defaultRenderAvailableCredits,
defaultRenderHeading,
}