-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(components): extract FooterTime client component
- Loading branch information
1 parent
80ebd04
commit e3f676b
Showing
2 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
'use client' | ||
|
||
import type { BuildTime } from '@/types' | ||
|
||
interface Props { | ||
buildTime: BuildTime | ||
} | ||
|
||
export default function FooterTime({ buildTime }: Props) { | ||
return ( | ||
<span> | ||
Last Build Time | ||
{' '} | ||
<a href="https://github.com/sabertazimi/blog/actions"> | ||
<time | ||
dateTime={new Date(buildTime).toLocaleString('zh-CN', { hour12: false })} | ||
> | ||
{new Date(buildTime).toLocaleString('zh-CN', { hour12: false })} | ||
</time> | ||
</a> | ||
</span> | ||
|
||
) | ||
} |