securityos/components/system/Files/FileEntry/StyledFigure.ts

16 lines
316 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
import styled from "styled-components";
type StyledFigureProps = {
$renaming: boolean;
};
const StyledFigure = styled.figure<StyledFigureProps>`
pointer-events: ${({ $renaming }) => ($renaming ? "all" : undefined)};
figcaption {
pointer-events: none;
}
`;
export default StyledFigure;