'use client' import type { FC } from 'react' import React from 'react' import NoPluginSelected from './no-plugin-selected' import type { AUTO_UPDATE_MODE } from './types' import PluginsSelected from './plugins-selected' import Button from '@/app/components/base/button' import { RiAddLine } from '@remixicon/react' type Props = { updateMode: AUTO_UPDATE_MODE value: string[] // plugin ids onChange: (value: string[]) => void } const PluginsPicker: FC = ({ updateMode, value, onChange, }) => { const hasSelected = value.length > 0 return (
{hasSelected ? (
The following 21 plugins will not auto-update
Clear all
) : ( )}
) } export default React.memo(PluginsPicker)