니디걸오버도즈
This commit is contained in:
parent
d4c8c9d9c5
commit
5be9625af3
25 changed files with 208 additions and 29 deletions
21
src/components/ReadmeWindow.tsx
Normal file
21
src/components/ReadmeWindow.tsx
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
'use client';
|
||||
|
||||
import { useState, useRef, useEffect } from 'react';
|
||||
import { useReadmeWaka } from '@/hooks/use-readme-waka';
|
||||
|
||||
export default function ReadmeWindow() {
|
||||
const { wakaContent, isLoading, error } = useReadmeWaka();
|
||||
|
||||
if (!wakaContent) return null;
|
||||
|
||||
return (
|
||||
<div className="font-mono rounded-b-lg">
|
||||
<div className="py-4">
|
||||
<h3 className="text-lg font-bold">WakaTime Stats</h3>
|
||||
<pre className="text-sm overflow-auto max-h-96 whitespace-pre-wrap break-words">
|
||||
{wakaContent.replace(/```(txt)?/g, '')}
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue