import HydrogenOverview from './HydrogenOverview';
import HydrogenDaily from './HydrogenDaily';
import type { DateQuickPick } from './types';

export type HydrogenSubTab = 'daily' | 'overview';

interface Props {
  sub: HydrogenSubTab;
  pick: DateQuickPick;
}

export default function HydrogenView({ sub, pick }: Props) {
  return sub === 'overview' ? <HydrogenOverview /> : <HydrogenDaily pick={pick} />;
}
