import { Loader } from "lucide-react" import { useFetchData } from '@/reducer/linkFetchReducer'; function Dashboard() { const wr_id = 16; const { loading, htmlContent, sideContent, error } = useFetchData(wr_id); return ( <> {loading ? (
) : error ? (
Error: {error}
) : (
{htmlContent} {sideContent}
)} ) } export default Dashboard