UNPKG

@hhgtech/hhg-components

Version:
24 lines (23 loc) 1.05 kB
import React, { HTMLAttributes, MouseEventHandler } from 'react'; import { DefaultProps, Selectors } from '@mantine/core'; import { UserInfo } from "../../../interfaces/types"; import useStyles from "./index.styles"; type MyComponentStylesNames = Selectors<typeof useStyles>; export interface Props extends DefaultProps<MyComponentStylesNames, HTMLAttributes<HTMLDivElement>> { trackingCategory?: string; url?: string; description?: string; replyingTo?: string; disableShortenContent?: boolean; mentionedUser?: UserInfo; mentions?: { id: number; name: string; }[]; maxChars?: number; hideShowAllBtn?: boolean; onClickCreatePostLink?: () => void; onClick?: MouseEventHandler<HTMLDivElement>; } export declare const PostContent: ({ trackingCategory, url, className, style, replyingTo, mentionedUser, description: rawDescription, disableShortenContent, mentions, maxChars, hideShowAllBtn, styles, onClickCreatePostLink, ...rest }: Props) => React.JSX.Element; export {};