'use client'; import { HTMLAttributes } from 'react'; import { Bar, BarChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts'; import { formatMonth } from '@documenso/lib/client-only/format-month'; import { cn } from '@documenso/ui/lib/utils'; import { StargazersType } from './page'; export type GithubOpenIssuesProps = HTMLAttributes & { data: StargazersType }; export const GithubOpenIssues = ({ className, data, ...props }: GithubOpenIssuesProps) => { const formattedData = Object.keys(data) .map((key) => ({ month: formatMonth(key), stars: data[key].openIssues, })) .reverse(); return (

Github: Open Issues

[Number(value), 'Stars']} cursor={{ fill: 'hsl(var(--primary) / 10%)' }} />
); };