@payfit/unity-components
Version:
30 lines (29 loc) • 1.16 kB
TypeScript
import { ComponentPropsWithoutRef } from 'react';
import { EmptyState } from '../EmptyState.js';
export interface EmptyStateGoodJobProps extends Omit<ComponentPropsWithoutRef<typeof EmptyState>, 'children'> {
/**
* Custom title text. If not provided, uses the default i18n message.
*/
title?: string;
/**
* Description text providing context about the completion.
* Defaults to placeholder text if not provided.
*/
description?: string;
}
/**
* EmptyStateGoodJob is a preset for celebrating task completion.
* It features a success icon with a decorative grid background that fades at the edges.
* The background is not customizable to maintain consistent celebration aesthetics.
* @param {EmptyStateGoodJobProps} props - The component props
* @example
* ```tsx
* import { EmptyStateGoodJob } from '@payfit/unity-components'
*
* <EmptyStateGoodJob
* description="You've completed all tasks in this section."
* />
* ```
*/
declare const EmptyStateGoodJob: import('react').ForwardRefExoticComponent<EmptyStateGoodJobProps & import('react').RefAttributes<HTMLDivElement>>;
export { EmptyStateGoodJob };