import { Link, generatePath } from 'react-router-dom'; import { LocalCode } from '@/features/local-indexer'; import { absoluteRoutes, routes } from '@/shared/config'; import { IdBlock } from '@/shared/ui'; import { ActionLink } from '@/shared/ui/ActionLink'; import { TimestampBlock } from '@/shared/ui/timestampBlock'; import CreateProgramSVG from '@/shared/assets/images/actions/create-program.svg?react'; import RelatedrelatedProgramsSVG from '@/shared/assets/images/actions/related-programs.svg?react'; import { Code } from '../../api'; import styles from './code-card.module.scss'; type Props = { code: Code | LocalCode; }; function CodeCard({ code }: Props) { const { id, name } = code; const to = `/code/${id}`; return (