16 lines
497 B
TypeScript
16 lines
497 B
TypeScript
import React from 'react';
|
|
import { useRecoilValue } from 'recoil';
|
|
|
|
import { ActionBar } from '@/ui/action-bar/components/ActionBar';
|
|
|
|
import { selectedBoardCardsState } from '../states/selectedBoardCardsState';
|
|
|
|
type OwnProps = {
|
|
children: React.ReactNode | React.ReactNode[];
|
|
};
|
|
|
|
export function EntityBoardActionBar({ children }: OwnProps) {
|
|
const selectedBoardCards = useRecoilValue(selectedBoardCardsState);
|
|
return <ActionBar selectedIds={selectedBoardCards}>{children}</ActionBar>;
|
|
}
|