UNPKG

react-google-reviews

Version:

A React component to easily display Google reviews using Google Places API or Google My Business API.

20 lines (19 loc) 701 B
/** @jsxImportSource @emotion/react */ import { FC } from "react"; import { ReviewCardCSSProps } from "../../types/cssProps"; import { DateDisplay, GoogleReview, LogoVariant, NameDisplay, ReviewVariant, Theme } from "../../types/review"; type ReviewCardProps = { review: GoogleReview; maxCharacters?: number; nameDisplay?: NameDisplay; logoVariant?: LogoVariant; dateDisplay?: DateDisplay; reviewVariant?: ReviewVariant; theme?: Theme; readMoreLabel?: string; readLessLabel?: string; getAbsoluteDate?: (date: Date) => string; getRelativeDate?: (date: Date) => string; }; export declare const ReviewCard: FC<ReviewCardProps & ReviewCardCSSProps>; export {};