Buckets:
| import type { GetServerSidePropsContext } from "next"; | |
| import { FormattedRelativeTime, useIntl } from "react-intl"; | |
| import loadIntlMessages from "../helper/loadIntlMessages"; | |
| import Layout from "../components/Layout"; | |
| export async function getStaticProps({ | |
| locale, | |
| defaultLocale, | |
| }: GetServerSidePropsContext) { | |
| return { | |
| props: { | |
| intlMessages: await loadIntlMessages(locale as string, defaultLocale), | |
| }, | |
| }; | |
| } | |
| export default function AboutPage() { | |
| const intl = useIntl(); | |
| return ( | |
| <Layout | |
| title={intl.formatMessage({ | |
| defaultMessage: "About", | |
| description: "Nav: About item", | |
| })} | |
| > | |
| <p> | |
| <FormattedRelativeTime numeric="auto" value={1} unit="hour" /> | |
| </p> | |
| </Layout> | |
| ); | |
| } | |
Xet Storage Details
- Size:
- 756 Bytes
- Xet hash:
- 79d12a50e32fe5534a052f82e6d3e60f0cc76b9556e215ccdd32dd287ea88f60
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.