Files
songs2vid/components/ResolutionSelect.tsx
T
Atakan Doğan ÖzbanandCursor 925aadae75 Strip Songs2VID to a payment-free self-hosted OSS core.
Remove Stripe/billing/pricing/marketing, simplify schema and entitlements for unlimited self-host use, and keep auth, encode, and YouTube upload.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 06:52:00 +02:00

29 lines
718 B
TypeScript

"use client";
import { getResolutionsForPlan } from "@/lib/plans";
type Props = {
value: string;
onChange: (value: string) => void;
disabled?: boolean;
};
export function ResolutionSelect({ value, onChange, disabled }: Props) {
const resolutions = getResolutionsForPlan();
return (
<select
value={value}
onChange={(e) => onChange(e.target.value)}
disabled={disabled}
className="w-full rounded border border-gray-600 bg-surface-light px-3 py-2 text-sm text-white focus:border-accent focus:outline-none disabled:opacity-50"
>
{resolutions.map((r) => (
<option key={r.value} value={r.value}>
{r.label}
</option>
))}
</select>
);
}