comment-content.js 852 B

12345678910111213141516
  1. import { View } from 'app/design/view';
  2. import { ContentMore } from 'app/ui/molecules/content/content-more';
  3. import { NeoButtonLink } from 'app/design/controls';
  4. import { BlockWrapper } from 'app/components/block-wrapper'
  5. import { useTranslation } from 'react-i18next'
  6. export default function ({data, blockWrapperProps}) {
  7. const { t } = useTranslation()
  8. return (
  9. <BlockWrapper {...blockWrapperProps}><View className="w-full px-3 sm:px-4">
  10. <ContentMore numberOfSymbols={360} showLess={true} content={data.text} numberOfLines={3} openSmall={false} customClassName="u-vanilla-html-small" />
  11. <NeoButtonLink href={data.link} style="borderless" controlSize="small" label={t('View all comments')} image="ChevronRight" imagePlacement="trailing" classNames={{ root: 'mt-1' }} />
  12. </View></BlockWrapper>
  13. );
  14. }