/**
 * WordPress dependencies
 */
import { __ } from '@wordpress/i18n';
const { Fragment } = wp.element;
const { withFilters, TabPanel, Panel, PanelBody, PanelRow, Button } = wp.components;
export const Sidebar = () => {
	return (
		<Fragment>
			<Panel className="community-section sidebar-section">
				<PanelBody
					opened={ true }
				>
					<h2>{ __( 'Web Creators Community', 'code4rest' ) }</h2>
					<p>{ __( 'Join our community of fellow code4rest users creating effective websites! Share your site, ask a question and help others.', 'code4rest' ) }</p>
					<a href="https://www.facebook.com/groups/webcreatorcommunity"  class="sidebar-link">{ __( 'Join our Facebook Group', 'code4rest' ) }</a>
				</PanelBody>
			</Panel>
			<Panel className="support-section sidebar-section">
				<PanelBody
					opened={ true }
				>
					<h2>{ __( 'Support', 'code4rest' ) }</h2>
					<p>{ __( 'Have a question, we are happy to help! Get in touch with our support team.', 'code4rest' ) }</p>
					<a href="https://www.code4restwp.com/free-support/"  class="sidebar-link">{ __( 'Submit a Ticket', 'code4rest' ) }</a>
				</PanelBody>
			</Panel>
		</Fragment>
	);
};

export default withFilters( 'code4rest_theme_sidebar' )( Sidebar );