import styled from '@emotion/styled'; import type { HTMLAttributes } from 'react'; import { FaMinusCircle } from 'react-icons/fa'; interface AssignmentTableCellProps { hideRemoveAssignmentButton?: boolean; } const AssignmentTableCell = styled.td` sup { visibility: hidden; } :hover { sup { visibility: ${({ hideRemoveAssignmentButton }) => hideRemoveAssignmentButton ? 'hidden' : 'visible'}; } } `; interface AssignmentsCellProps extends HTMLAttributes, AssignmentTableCellProps { onRemove?: HTMLAttributes['onClick']; } export function AssignmentsCell(props: AssignmentsCellProps) { const { onRemove, children, ...otherProps } = props; return ( {children} ); }