/*
* SPDX-FileCopyrightText: 2024 Kristóf Marussy
*
* SPDX-License-Identifier: MIT
*/
import Link, { type Props as LinkProps } from '@docusaurus/Link';
import { Certificate, Lock } from '@phosphor-icons/react';
import { CreativeCommonsIcon } from '@site/src/components/icons';
import styles from './licenses.module.css';
export type LicenseLinkProps = LinkProps & { label?: string };
export function LicenseLink({ children, label, ...props }: LicenseLinkProps) {
return (
{label ?? 'License'}:
{children}
);
}
export function MITLicenseLink() {
return MIT;
}
export function CCLicenseLink({ children, label, ...props }: LicenseLinkProps) {
return (
{label ?? 'Creative Commons license'}:
{children}
);
}
export function CCBYLicenseLink() {
return (
CC-BY-4.0
);
}
export function ClosedAccessLink({
children,
label,
...props
}: LicenseLinkProps) {
return (
{label ?? 'Closed access'}:
{children}
);
}
export type SpanProps = React.DetailedHTMLProps<
React.HTMLAttributes,
HTMLSpanElement
>;
export function LicenseText({ children, ...props }: SpanProps) {
return (
{children}
);
}
export function CCLicenseText({ children, ...props }: SpanProps) {
return (
{children}
);
}
export function ClosedAccessText({ children, ...props }: SpanProps) {
return (
{children}
);
}