Copyright
The footer's bottom line: a translated "Copyright" label, the current year and the store name linking home.
import { Copyright } from '@salla.sa/twilight-theme-engine/components/layout';In plain words
The small line at the very bottom of the footer: "Copyright | 2026 Store name", where the store name links to the home page. The word "Copyright" is translated into the page's language.
Signature
const Copyright: LazyExoticComponent<(props: CopyrightProps) => JSX.Element>
// CopyrightProps is not exported
interface CopyrightProps {
storeName?: string; // default ''
}Try it live
Copyright | 2026 ثيم رائد
import { Copyright } from '@salla.sa/twilight-theme-engine/components/layout';
import { useStore } from '@salla.sa/twilight-theme-engine/hooks/useStore';
export function FooterBottom() {
const store = useStore();
return (
<p className="text-sm">
<Copyright storeName={store.name} />
</p>
);
}
Example
import { Copyright } from '@salla.sa/twilight-theme-engine/components/layout';
import { useStore } from '@salla.sa/twilight-theme-engine/hooks/useStore';
export function FooterBottom() {
const { name } = useStore();
return (
<p className="copyright-text text-sm">
<Copyright storeName={name} />
</p>
);
}
How it behaves
It renders a fragment, not an element: the
blocks.footer.copyrighttranslation,|, the year, and an engineLinkto/with the classhover:text-primaryaround the store name. Wrap it in your own element to style or place it.The year is read from the clock while rendering.
Footerrenders it as the fallback of itscopyrighthook slot.It is lazy (code-split).
Gotchas
Without
storeNamethe link has no text: an empty anchor that screen readers announce only as "link". Pass the store name.Its source comment says it shows "Copyright | Year StoreName | Powered by Salla". It renders no "Powered by Salla"; add it yourself if you want it.
Related
Source and docs
- Engine source:
packages/theme-engine/src/components/layout/Copyright.tsx