import React, { forwardRef } from 'react'; import { Form } from 'formik'; import { breakpoint } from '@/theme'; import FlashMessageRender from '@/components/FlashMessageRender'; import tw, { styled } from 'twin.macro'; const Wrapper = styled.div` ${breakpoint('sm')` ${tw`w-4/5 mx-auto`} `}; ${breakpoint('md')` ${tw`p-10`} `}; ${breakpoint('lg')` ${tw`w-3/5`} `}; ${breakpoint('xl')` ${tw`w-full`} max-width: 700px; `}; `; const Inner = ({ children }: { children: React.ReactNode }) => (
{children}
); const Container = ({ title, children }: { title?: string, children: React.ReactNode }) => ( {title &&

{title}

} {children}

© 2015 - {(new Date()).getFullYear()}  Pterodactyl Software

); type FormContainerProps = React.DetailedHTMLProps, HTMLFormElement> & { title?: string; } const FormContainer = forwardRef(({ title, ...props }, ref) => (
{props.children}
)); type DivContainerProps = React.DetailedHTMLProps, HTMLDivElement> & { title?: string; } export const DivContainer = ({ title, ...props }: DivContainerProps) => (
{props.children}
); export default FormContainer;