import clsx from 'clsx'; import { Link, generatePath } from 'react-router-dom'; import { IssueVoucher, VoucherBadge } from '@/features/voucher'; import { absoluteRoutes } from '@/shared/config'; import sendSVG from '@/shared/assets/images/actions/send.svg?react'; import { IdBlock } from '@/shared/ui/idBlock'; import { BulbBlock } from '@/shared/ui/bulbBlock'; import { TimestampBlock } from '@/shared/ui/timestampBlock'; import { ActionLink } from '@/shared/ui/ActionLink'; import { LocalProgram } from '@/features/local-indexer'; import { Program } from '../../api'; import { getBulbStatus } from '../../utils'; import { PROGRAM_STATUS_NAME, ProgramStatus } from '../../consts'; import styles from './program-card.module.scss'; type Props = { program: Program | LocalProgram; vertical?: boolean; }; const ProgramCard = ({ program, vertical }: Props) => { const { id: programId, name, status } = program; const statusName = PROGRAM_STATUS_NAME[status]; return (

{name}

{'timestamp' in program && }
{status === ProgramStatus.Active && ( <> )}
); }; export { ProgramCard };