mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-21 05:56:20 +00:00
22 lines
595 B
TypeScript
22 lines
595 B
TypeScript
import { faEllipsisV as menuIcon } from '@fortawesome/free-solid-svg-icons';
|
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
import type { FC, PropsWithChildren } from 'react';
|
|
import { DropdownBtn } from './DropdownBtn';
|
|
|
|
export type DropdownBtnMenuProps = PropsWithChildren<{
|
|
minWidth?: number;
|
|
}>;
|
|
|
|
export const RowDropdownBtn: FC<DropdownBtnMenuProps> = ({ children, minWidth }) => (
|
|
<DropdownBtn
|
|
text={<FontAwesomeIcon className="px-1" icon={menuIcon} />}
|
|
size="sm"
|
|
minWidth={minWidth}
|
|
end
|
|
noCaret
|
|
inline
|
|
>
|
|
{children}
|
|
</DropdownBtn>
|
|
);
|