import React from 'react' import { AuthMenu, Button, EmptyDialogButton } from '@app/components/general' import { _ONBOARDED } from '@app/lib/cookies/names' import { GrConnect, GrDocumentTest, GrLineChart, GrSort } from 'react-icons/gr' import dynamic from 'next/dynamic' const FormDialog = dynamic( () => import('../general/form-dialog').then((mod) => mod.FormDialog), { ssr: false, loading: () => ( Subscribe} iconButton /> ), } ) // right bar export type RightBarProps = { onQueryEvent(x: any): void onScanAllEvent?(x: any): void // scan all websites onWebsiteSort(x: any): void onAnalyticsEvent(): void queryModalVisible?: boolean sortModalVisible?: boolean premiumEnabled?: boolean // used to detect prem atm } const btnStyles = 'gap-x-1.5 flex place-items-center hover:border-blue-800 hover:text-blue-800' export const RightBar = ({ onWebsiteSort, premiumEnabled, onQueryEvent, onScanAllEvent, queryModalVisible, sortModalVisible, onAnalyticsEvent, }: RightBarProps) => { return (
{onScanAllEvent ? ( ) : null} {premiumEnabled ? ( <> ) : null} Subscribe} buttonStyles={`flex place-items-center ${btnStyles}`} iconButton icon />
) }