Hiyve Components - v1.0.0
    Preparing search index...

    Interface CreateAssignmentDialogProps

    Props for the CreateAssignmentDialog component.

    <CreateAssignmentDialog
    open={showDialog}
    onClose={() => setShowDialog(false)}
    onCreate={(fileId, fileName, fileData) => {
    openExisting(fileData, fileId);
    setShowDialog(false);
    }}
    defaultName="Design Review"
    />
    interface CreateAssignmentDialogProps {
        defaultName?: string;
        error?: string | null;
        isCreating?: boolean;
        labels?: Partial<CreateAssignmentDialogLabels>;
        onClose: () => void;
        onCreate: (
            fileId: string,
            fileName: string,
            fileData: AssignmentFile,
        ) => void;
        open: boolean;
    }
    Index

    Properties

    defaultName?: string

    Default name for the assignment

    error?: string | null

    Error message to display (external control)

    isCreating?: boolean

    Whether create is in progress (external control)

    Custom labels for i18n support

    onClose: () => void

    Called when dialog closes

    onCreate: (fileId: string, fileName: string, fileData: AssignmentFile) => void

    Called when assignment is created successfully

    open: boolean

    Whether the dialog is open