@aioha/react-ui
Version:
Ready-made React modal for Aioha
16 lines (15 loc) • 827 B
JavaScript
import React from 'react';
import { CloseIcon } from './Icons.js';
const sizes = {
7: 'w-7',
12: 'w-12'
};
export const RightAngledArrow = ({ w = 7 }) => {
return (React.createElement("td", { className: `px-1 py-4 ${sizes[w]} whitespace-nowrap` },
React.createElement("svg", { className: "w-4 h-4 mx-auto text-gray-400 dark:text-gray-500 opacity-70", fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M9 5l7 7-7 7" }))));
};
export const RmRowIcon = ({ w = 7 }) => {
return (React.createElement("td", { className: `px-1 py-4 ${sizes[w]} whitespace-nowrap text-gray-800 dark:text-gray-100` },
React.createElement(CloseIcon, null)));
};