Initial OSS scaffold from Songs2VID (pre-strip)

This commit is contained in:
Songs2VID Support
2026-08-03 06:15:05 +02:00
commit 506d56fa92
195 changed files with 25023 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
import Link from "next/link";
import type { ReactNode } from "react";
import { PRO_UPGRADE_REQUIRED_SUFFIX } from "@/lib/credits";
import { UPGRADE_URL } from "@/lib/plans";
import { UpgradeProButton } from "@/components/UpgradeProButton";
type Props = {
className?: string;
children?: ReactNode;
};
export function UpgradeProLink({ className = "text-accent hover:underline", children }: Props) {
return (
<Link href={UPGRADE_URL} className={className}>
{children ?? "Upgrade to Pro"}
</Link>
);
}
export function QuotaErrorMessage({ message }: { message: string }) {
if (message.endsWith(PRO_UPGRADE_REQUIRED_SUFFIX)) {
return (
<>
{message.slice(0, -PRO_UPGRADE_REQUIRED_SUFFIX.length)}{" "}
<UpgradeProButton
className="font-medium text-red-200 underline hover:text-white"
label="Upload up to 50 videos with Pro!"
/>
</>
);
}
return <>{message}</>;
}