import { ArrowLongDownIcon } from "@heroicons/react/24/outline"; import { epochToDate } from "@pythnetwork/staking-sdk"; import { Date } from "../Date"; type Props = { cooldownOnly?: boolean | undefined; currentEpoch: bigint; }; export const StakingTimeline = ({ cooldownOnly, currentEpoch }: Props) => (
Timeline
{!cooldownOnly && ( <>
Warmup
{epochToDate(currentEpoch + 1n)}
Staking
Unlimited
)}
Cooldown
{cooldownOnly ? ( {epochToDate(currentEpoch + 2n)} ) : (
One full epoch
)}
);