mirror of
https://github.com/vercel/commerce.git
synced 2025-10-08 23:22:38 +00:00
.github
.vscode
app
components
cart
layout
dynamic-content-manager
footer
copyright.tsx
footer.tsx
index.ts
header
modules
pages
preview
product
search
ui
loading-dots.tsx
price.tsx
prose.tsx
helpers
lib
messages
plugins
public
.env.example
.eslintrc.js
.gitignore
.npmrc
.nvmrc
.prettierignore
README.md
components.json
i18n-config.ts
license.md
middleware.ts
next.config.js
package.json
playwright.config.ts
pnpm-lock.yaml
postcss.config.js
prettier.config.js
sanity.config.ts
tailwind.config.js
tsconfig.json
16 lines
384 B
TypeScript
16 lines
384 B
TypeScript
'use client';
|
|
|
|
import { useTranslations } from 'next-intl';
|
|
|
|
export default function CopyRight() {
|
|
const currentYear = new Date().getFullYear();
|
|
const copyrightDate = 2023 + (currentYear > 2023 ? `-${currentYear}` : '');
|
|
const t = useTranslations('ui');
|
|
|
|
return (
|
|
<p className="text-xs text-white">
|
|
© {copyrightDate} Kodamera - {t('copyright')}
|
|
</p>
|
|
);
|
|
}
|