"use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkALEYL6IKjs = require('./chunk-ALEYL6IK.js');



var _chunkGWVQVSWBjs = require('./chunk-GWVQVSWB.js');

// tmp-babel/content-feed/web/ContentFeed/index.js
var _react = require('react');
var _material = require('@mui/material');
var _navigation = require('next/navigation');
var _jsxruntime = require('react/jsx-runtime');
var ContentFeed = function ContentFeed2(_ref) {
  var preloadedQuery = _ref.preloadedQuery;
  var router = _navigation.useRouter.call(void 0, );
  var onNewPost = _react.useCallback.call(void 0, function() {
    router.push("/posts/new");
  }, [router]);
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGWVQVSWBjs.RootContainer, {
    children: [/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkGWVQVSWBjs.HeaderContainer, {
      children: [/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, {
        component: "h4",
        variant: "h4",
        children: "Content Feed"
      }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Button, {
        variant: "outlined",
        color: "inherit",
        onClick: onNewPost,
        disableRipple: true,
        sx: {
          maxWidth: "fit-content"
        },
        children: "New Post"
      })]
    }), /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkALEYL6IKjs.PostList_default, {
      preloadedQuery
    })]
  });
};
var ContentFeed_default = ContentFeed;



exports.ContentFeed_default = ContentFeed_default;
//# sourceMappingURL=chunk-XUFUWXMF.js.map