···1import { date } from "../lib/date.ts";
2import { env } from "../lib/env.ts";
3-import { CgTimelapse } from "jsr:@preact-icons/cg";
45import { Paragraph } from "./typography.tsx";
6import type { ComponentChildren } from "preact";
7-import { h } from "preact";
8-9-// Wrapper component for the icon to handle compatibility issues
10-const TimeIcon = () => h(CgTimelapse, { size: 13 });
1112// Calculate reading time based on content length
13function getReadingTime(content: string): number {
···1import { date } from "../lib/date.ts";
2import { env } from "../lib/env.ts";
034import { Paragraph } from "./typography.tsx";
5import type { ComponentChildren } from "preact";
000067// Calculate reading time based on content length
8function getReadingTime(content: string): number {