Files
omnivore/packages/web/components/elements/images/MoreOptionsIcon.tsx
2022-03-22 02:15:04 +00:00

18 lines
481 B
TypeScript

import { DotsThree, DotsThreeVertical } from 'phosphor-react'
type Orientation = 'horizontal' | 'vertical'
type MoreOptionsIconProps = {
size: number
strokeColor: string
orientation: Orientation
}
export function MoreOptionsIcon(props: MoreOptionsIconProps): JSX.Element {
return props.orientation == 'horizontal' ? (
<DotsThree size={props.size} color={props.strokeColor}/>
) : (
<DotsThreeVertical size={props.size} color={props.strokeColor}/>
)
}