Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.
import type { ComponentProps } from 'react';
import type { LucideIcon } from 'lucide-react';
import { Input } from '@/components/ui/input';
interface IconInputProps extends ComponentProps<typeof Input> {
icon: LucideIcon;
}
export default function IconInput({ icon, ...props }: IconInputProps) {
const Icon = icon;
return (
<div className="relative">
<Icon className="pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 stroke-[1.75] text-ink-faint" />
<Input className="pl-9" {...props} />
</div>
);
}