Skip to content

Make the Tool component work with DynamicToolUIPart #275

@willdady

Description

@willdady

The Tool component currently only works with ToolUIPart. Specifically, the ToolHeader component props is the issue. It looks like it would be trivial to make it's props compatible with both ToolUIPart and DyanmicToolUIPart.

export type ToolHeaderProps = {
  title?: string;
  type: ToolUIPart["type"]; // `tool-${NAME}`
  state: ToolUIPart["state"];
  className?: string;
};

Alternatively a dedicated DynamicToolHeader component could work too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions