import { BrokerFieldsPanel } from "./broker-fields-panel";
import { BrokerSetupPanel } from "./broker-setup-panel";
import { BrokerSyncPanel } from "./broker-sync-panel";
import { PortfolioChoicePanel } from "./choose-panel";
import { PositionsPanel } from "./positions-panel";
import type { PortfolioStepProps, PortfolioSub } from "./types";
export type { PortfolioSub };
export function PortfolioStep(props: PortfolioStepProps) {
if (props.sub === "positions") {
return (
);
}
if (props.sub === "choose") {
return (
);
}
if (props.sub === "broker-setup" && props.selectedBrokerId) {
return (
);
}
if (props.sub === "broker-sync" && props.selectedBrokerId) {
return (
);
}
if (!props.selectedBrokerId) {
return null;
}
return (
);
}