import { AmplifyAuthenticator } from "@aws-amplify/ui-react"; import React, { useCallback } from "react"; import { Auth } from 'aws-amplify'; import Head from "next/head"; import Link from "next/link" import Sidebar from "../../components/sidebar" import PageHeading from "../../components/pageheadingcomponent"; export interface DefaultLayoutProps { username: string, title: string, children?: React.ReactNode, } export default function DefaultLayout(props: DefaultLayoutProps) { const sidebarPropsVal = { name: props.title }; const signOut = async() => { await Auth.signOut(); window.location.assign('/'); }; return (
) }