// Mock function simulating an API call to a service like JustWatch or TMDB const fetchStreamingLinks = async (movieTitle) => // In a real app, you would fetch from an actual API endpoint. // This mock data represents legal sources for "Evil Dead (2013)" const mockDatabase = "evil dead 2013": [ platform: "Amazon Prime Video", type: "Subscription", audio: ["English", "Hindi"], link: "https://www.primevideo.com" , platform: "Apple TV", type: "Rent/Buy", audio: ["English"], link: "https://tv.apple.com" , platform: "Netflix", type: "Subscription", audio: ["English", "Hindi", "Tamil"], link: "https://www.netflix.com" ] ; X Art Gianna Morning Tryst — X-art Successfully Capitalized
const AvailabilityChecker = () => const [query, setQuery] = useState(''); const [results, setResults] = useState([]); const [loading, setLoading] = useState(false); const [searched, setSearched] = useState(false); Microsoft Nano Transceiver V2.0 [SAFE]
/* Results Section */ <div className="space-y-4"> results.length > 0 && ( <div className="bg-gray-50 p-4 rounded-lg border border-gray-200"> <h2 className="text-lg font-semibold text-gray-700 mb-3">Available On:</h2> results.map((item, index) => ( <div key=index className="flex items-center justify-between p-3 bg-white rounded shadow-sm mb-2 last:mb-0 hover:shadow-md transition-shadow"> <div> <h3 className="font-bold text-gray-800">item.platform</h3> <p className="text-sm text-gray-500">item.type</p> <div className="flex gap-1 mt-1"> item.audio.map((lang) => ( <span key=lang className="px-2 py-0.5 bg-blue-100 text-blue-800 text-xs rounded-full"> lang </span> )) </div> </div> <a href=item.link target="_blank" rel="noopener noreferrer" className="px-4 py-2 bg-green-500 text-white text-sm rounded hover:bg-green-600" > Watch Now </a> </div> )) </div> )
const handleSearch = async (e) => e.preventDefault(); if (!query) return;
return new Promise((resolve) => setTimeout(() => , 800); ); ;