import { PoweredByEverShop } from '@components/common/PoweredByEverShop.js'; import React from 'react'; interface CopyRightProps { themeConfig: { copyRight: string; showPoweredBy?: boolean; }; } export default function CopyRight({ themeConfig: { copyRight, showPoweredBy = false } = { copyRight: `© ${new Date().getFullYear()} EverShop` } }: CopyRightProps) { return (
{copyRight} {showPoweredBy && ( <> )}
); } export const layout = { areaId: 'footerLeft', sortOrder: 10 }; export const query = ` query query { themeConfig { copyRight showPoweredBy } } `;