mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
194e8cf3a8
This reverts commitd1a5996268, reversing changes made toae4ecc42f0.
19 lines
683 B
TypeScript
19 lines
683 B
TypeScript
import { FC, useMemo } from 'react';
|
|
import { Flex, FlexProps } from '../../../../common';
|
|
|
|
export const ContextMenuHeaderView: FC<FlexProps> = props =>
|
|
{
|
|
const { justifyContent = 'center', alignItems = 'center', classNames = [], ...rest } = props;
|
|
|
|
const getClassNames = useMemo(() =>
|
|
{
|
|
const newClassNames: string[] = [ 'bg-[#3d5f6e] text-[#fff] min-w-[117px] h-[25px] max-h-[25px] text-[16px] mb-[2px]', 'p-1' ];
|
|
|
|
if(classNames.length) newClassNames.push(...classNames);
|
|
|
|
return newClassNames;
|
|
}, [ classNames ]);
|
|
|
|
return <Flex alignItems={ alignItems } classNames={ getClassNames } justifyContent={ justifyContent } { ...rest } />;
|
|
};
|