'use client'; import React, { HTMLAttributes } from 'react'; import { Loader } from 'lucide-react'; import { cn } from '@documenso/ui/lib/utils'; import { Button } from '@documenso/ui/primitives/button'; export type EditDocumentFormContainerProps = HTMLAttributes & { children?: React.ReactNode; }; export const EditDocumentFormContainer = ({ children, id = 'edit-document-form', className, ...props }: EditDocumentFormContainerProps) => { return ( {children} ); }; export type EditDocumentFormContainerContentProps = HTMLAttributes & { title: string; description: string; children?: React.ReactNode; }; export const EditDocumentFormContainerContent = ({ children, title, description, className, ...props }: EditDocumentFormContainerContentProps) => { return ( {title} {description} {children} ); }; export type EditDocumentFormContainerFooterProps = HTMLAttributes & { children?: React.ReactNode; }; export const EditDocumentFormContainerFooter = ({ children, className, ...props }: EditDocumentFormContainerFooterProps) => { return ( {children} ); }; export type EditDocumentFormContainerStepProps = { title: string; step: number; maxStep: number; }; export const EditDocumentFormContainerStep = ({ title, step, maxStep, }: EditDocumentFormContainerStepProps) => { return ( {title}{' '} ({step}/{maxStep}) ); }; export type EditDocumentFormContainerActionsProps = { canGoBack?: boolean; canGoNext?: boolean; goNextLabel?: string; goBackLabel?: string; onGoBackClick?: () => void; onGoNextClick?: () => void; loading?: boolean; disabled?: boolean; }; export const EditDocumentFormContainerActions = ({ canGoBack = true, canGoNext = true, goNextLabel = 'Continue', goBackLabel = 'Go Back', onGoBackClick, onGoNextClick, loading, disabled, }: EditDocumentFormContainerActionsProps) => { return ( {goBackLabel} {loading && } {goNextLabel} ); };
{description}
{title}{' '} ({step}/{maxStep})