import { Component, For, Show } from "solid-js"; import { Typewriter } from "./Typewriter"; import { SkeletonText, SkeletonBox } from "./SkeletonLoader"; import { formatRelativeTime } from "~/lib/date-utils"; interface Commit { sha: string; message: string; author: string; date: string; repo: string; url: string; } export const RecentCommits: Component<{ commits: Commit[] | undefined; title: string; loading?: boolean; }> = (props) => { return (

{props.title}

0} fallback={ No recent commits
} >
{() => (
)}
} >
{(commit) => (
{commit.message}
{formatRelativeTime(commit.date, { style: "short", maxDays: 7 })}
{commit.sha} {commit.repo}
)}
); };