mirror of
https://github.com/projectsend/projectsend.git
synced 2026-09-23 12:03:20 +00:00
6e47d76ba6
Client file sharing, rebuilt from the ground up: a private area per client, resumable uploads, folders, groups and categories, sharing with expiry dates and download limits, comments, file versions, an activity log, a REST API, and sixteen languages. This repository begins here. ProjectSend 2 was developed privately, and that development history is not published — the previous generation remains available, with its own history, at projectsend/legacy. Free software under the GNU General Public License v2, or (at your option) any later version.
40 lines
1.4 KiB
TypeScript
40 lines
1.4 KiB
TypeScript
import { type SharedData } from '@/types';
|
|
import { usePage } from '@inertiajs/react';
|
|
|
|
import { useTranslation } from '@/hooks/use-translation';
|
|
|
|
/**
|
|
* The one line that names ProjectSend to clients and anonymous
|
|
* visitors, on the public pages, the sign-in pages and the client
|
|
* portal.
|
|
*
|
|
* Deliberately no version number. Every one of these surfaces is
|
|
* reachable without signing in, and printing the exact release there
|
|
* tells anyone scanning which advisories apply to this installation.
|
|
* The version belongs on the staff side — the sidebar line and
|
|
* /system/about — where the people who would act on it are.
|
|
*
|
|
* Renders nothing at all when the installation has white-labelled
|
|
* itself; `attribution` is true everywhere unless the cloud-only
|
|
* Branding module says otherwise.
|
|
*
|
|
* Takes its own classes rather than carrying any: the four themes keep
|
|
* visibly different footers on purpose (see
|
|
* docs/theming-files-checklist.md), and this is one of the few pieces
|
|
* every one of them shares.
|
|
*/
|
|
export function PoweredBy({ className }: { className?: string }) {
|
|
const { t } = useTranslation();
|
|
const { attribution, links } = usePage<SharedData>().props;
|
|
|
|
if (!attribution) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<a href={links.website} target="_blank" rel="noreferrer" className={className}>
|
|
{t('Powered by ProjectSend')}
|
|
</a>
|
|
);
|
|
}
|