Props

interface IProps {
    organizations: Pick<
        IFrontOrganizationsItem,
        "id"
        | "name"
        | "owners"
        | "users"
        | "groups",
    >[];
    swr: {
        addOneWorkspace: (workspace: IFrontNewWorkspace) => Promise<void>;
        delOneWorkspace: (workspace: IFrontMutateWorkspacesItem) => Promise<void>;
        mutateOneWorkspace: (
            workspace: IFrontMutateWorkspacesItem,
        ) => Promise<void>;
    };
    user: Pick<IFrontUser, "id" | "plugins">;
    workspaces: Pick<
        IFrontWorkspacesItem,
        "id"
        | "name"
        | "projects"
        | "owners"
        | "users"
        | "groups",
    >[];
}

Properties

organizations: Pick<
    IFrontOrganizationsItem,
    "id"
    | "name"
    | "owners"
    | "users"
    | "groups",
>[]
swr: {
    addOneWorkspace: (workspace: IFrontNewWorkspace) => Promise<void>;
    delOneWorkspace: (workspace: IFrontMutateWorkspacesItem) => Promise<void>;
    mutateOneWorkspace: (
        workspace: IFrontMutateWorkspacesItem,
    ) => Promise<void>;
}
user: Pick<IFrontUser, "id" | "plugins">
workspaces: Pick<
    IFrontWorkspacesItem,
    "id"
    | "name"
    | "projects"
    | "owners"
    | "users"
    | "groups",
>[]