import * as React from 'react'; import { PanelSettings } from '../../models'; import { CommandToCode } from '../CommandToCode'; import { Collapsible } from './Collapsible'; import { BugIcon } from './Icons/BugIcon'; import { FileIcon } from './Icons/FileIcon'; import { FolderOpenedIcon } from './Icons/FolderOpenedIcon'; import { TemplateIcon } from './Icons/TemplateIcon'; import { WritingIcon } from './Icons/WritingIcon'; import { OtherActionButton } from './OtherActionButton'; import { DOCUMENTATION_LINK, DOCUMENTATION_SETTINGS_LINK, ISSUE_LINK } from '../../constants/Links'; import { Messenger } from '@estruyf/vscode/dist/client'; import { BookOpenIcon } from '@heroicons/react/24/outline'; import * as l10n from '@vscode/l10n'; import { LocalizationKey } from '../../localization'; import { Icon } from 'vscrui'; export interface IOtherActionsProps { isFile: boolean; settings: PanelSettings | undefined; isBase?: boolean; } const OtherActions: React.FunctionComponent = ({ isFile, settings, isBase }: React.PropsWithChildren) => { const openFile = () => { Messenger.send(CommandToCode.openFile); }; const openProject = () => { Messenger.send(CommandToCode.openProject); }; const createAsTemplate = () => { Messenger.send(CommandToCode.createTemplate); }; const toggleWritingSettings = () => { Messenger.send(CommandToCode.toggleWritingSettings); }; return ( <> {' '} { settings?.writingSettingsEnabled ? l10n.t(LocalizationKey.panelOtherActionsWritingSettingsEnabled) : l10n.t(LocalizationKey.panelOtherActionsWritingSettingsDisabled) } Messenger.send(CommandToCode.toggleCenterMode)}> {l10n.t(LocalizationKey.panelOtherActionsCenterMode)} {l10n.t(LocalizationKey.panelOtherActionsCreateTemplate)} {l10n.t(LocalizationKey.panelOtherActionsRevealFile)} {l10n.t(LocalizationKey.panelOtherActionsOpenProject)}
{l10n.t(LocalizationKey.panelOtherActionsDocumentation)}
{l10n.t(LocalizationKey.panelOtherActionsSettings)}
{l10n.t(LocalizationKey.panelOtherActionsIssue)}
); }; OtherActions.displayName = 'OtherActions'; export { OtherActions };