import * as React from 'react'; import { IconProps } from '../../types'; import { IconWrapper } from '../IconWrapper'; const KeySquare = (allProps: IconProps) => { const { svgProps: props, iconStyle, ...restProps } = allProps; const styles: { [style: string]: React.ReactNode } = { Broken: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path d="M14.208 13.552A3.784 3.784 0 0 0 18 9.776 3.784 3.784 0 0 0 14.208 6a3.784 3.784 0 0 0-3.791 3.776c0 .966.44 1.669.44 1.669L6.274 16.01c-.206.205-.494.738 0 1.23l.529.526c.205.176.723.422 1.146 0l.617-.614c.617.614 1.323.263 1.587-.088.441-.615-.088-1.23-.088-1.23l.177-.175c.846.843 1.587.351 1.851 0 .441-.615 0-1.23 0-1.23-.176-.351-.529-.351-.088-.79l.53-.527c.422.351 1.292.44 1.674.44Z" stroke="currentColor" strokeWidth={1.5} strokeLinejoin="round" /><path d="M22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12s0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464.974.974 1.3 2.343 1.41 4.536" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round" /></svg>, LineDuotone: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path d="M14.208 13.552A3.784 3.784 0 0 0 18 9.776 3.784 3.784 0 0 0 14.208 6a3.784 3.784 0 0 0-3.791 3.776c0 .966.44 1.669.44 1.669L6.274 16.01c-.206.205-.494.738 0 1.23l.529.526c.205.176.723.422 1.146 0l.617-.614c.617.614 1.323.263 1.587-.088.441-.615-.088-1.23-.088-1.23l.177-.175c.846.843 1.587.351 1.851 0 .441-.615 0-1.23 0-1.23-.176-.351-.529-.351-.088-.79l.53-.527c.422.351 1.292.44 1.674.44Z" stroke="currentColor" strokeWidth={1.5} strokeLinejoin="round" /><path opacity={0.5} d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z" stroke="currentColor" strokeWidth={1.5} /></svg>, Linear: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path d="M14.208 13.552A3.784 3.784 0 0 0 18 9.776 3.784 3.784 0 0 0 14.208 6a3.784 3.784 0 0 0-3.791 3.776c0 .966.44 1.669.44 1.669L6.274 16.01c-.206.205-.494.738 0 1.23l.529.526c.205.176.723.422 1.146 0l.617-.614c.617.614 1.323.263 1.587-.088.441-.615-.088-1.23-.088-1.23l.177-.175c.846.843 1.587.351 1.851 0 .441-.615 0-1.23 0-1.23-.176-.351-.529-.351-.088-.79l.53-.527c.422.351 1.292.44 1.674.44Z" stroke="currentColor" strokeWidth={1.5} strokeLinejoin="round" /><path d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z" stroke="currentColor" strokeWidth={1.5} /></svg>, Outline: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path fillRule="evenodd" clipRule="evenodd" d="M11.943 1.25h.114c2.309 0 4.118 0 5.53.19 1.444.194 2.584.6 3.479 1.494.895.895 1.3 2.035 1.494 3.48.19 1.411.19 3.22.19 5.529v.114c0 2.309 0 4.118-.19 5.53-.194 1.444-.6 2.584-1.494 3.479-.895.895-2.035 1.3-3.48 1.494-1.411.19-3.22.19-5.529.19h-.114c-2.309 0-4.118 0-5.53-.19-1.444-.194-2.584-.6-3.479-1.494-.895-.895-1.3-2.035-1.494-3.48-.19-1.411-.19-3.22-.19-5.529v-.114c0-2.309 0-4.118.19-5.53.194-1.444.6-2.584 1.494-3.479.895-.895 2.035-1.3 3.48-1.494 1.411-.19 3.22-.19 5.529-.19Zm-5.33 1.676c-1.278.172-2.049.5-2.618 1.069-.57.57-.897 1.34-1.069 2.619-.174 1.3-.176 3.008-.176 5.386s.002 4.086.176 5.386c.172 1.279.5 2.05 1.069 2.62.57.569 1.34.896 2.619 1.068 1.3.174 3.008.176 5.386.176s4.086-.002 5.386-.176c1.279-.172 2.05-.5 2.62-1.069.569-.57.896-1.34 1.068-2.619.174-1.3.176-3.008.176-5.386s-.002-4.086-.176-5.386c-.172-1.279-.5-2.05-1.069-2.62-.57-.569-1.34-.896-2.619-1.068-1.3-.174-3.008-.176-5.386-.176s-4.086.002-5.386.176Zm7.595 3.824a3.034 3.034 0 0 0-3.041 3.026 2.712 2.712 0 0 0 .323 1.264l.006.01a.744.744 0 0 1-.106.923l-4.588 4.57s-.004.003-.01.012a.274.274 0 0 0-.02.03.177.177 0 0 0-.022.054v.003l.001.002a.31.31 0 0 0 .05.065l.5.497.003.002a.311.311 0 0 0 .099.041l.016-.013.617-.615a.75.75 0 0 1 1.058 0c.077.076.133.1.162.11.03.008.06.01.094.003a.36.36 0 0 0 .124-.052.347.347 0 0 0 .075-.063c.035-.053.037-.091.013-.161a.54.54 0 0 0-.074-.143m1.556.554c-.043.206-.13.42-.282.633l-.005.007-.005.007a1.873 1.873 0 0 1-1.12.692c-.314.06-.646.034-.966-.097l-.189.188c-.4.398-.88.495-1.293.434a1.775 1.775 0 0 1-.912-.434l-.529-.527c-.42-.419-.547-.918-.473-1.375.067-.41.286-.73.473-.917l4.211-4.194a4.212 4.212 0 0 1-.287-1.51c0-2.503 2.036-4.526 4.541-4.526 2.506 0 4.542 2.023 4.542 4.526 0 2.503-2.036 4.526-4.542 4.526-.236 0-.6-.026-.974-.103a3.796 3.796 0 0 1-.484-.132 2.014 2.014 0 0 1 .237.573c.092.384.093.93-.285 1.457l-.005.007-.006.007a1.952 1.952 0 0 1-1.167.733 1.75 1.75 0 0 1-.48.025Zm-1.556-.554a.75.75 0 0 1 .047-1.011l.176-.176a.75.75 0 0 1 1.059 0 .906.906 0 0 0 .326.228.277.277 0 0 0 .149.015.457.457 0 0 0 .243-.156.255.255 0 0 0 .04-.226.51.51 0 0 0-.053-.133l-.027-.037-.026-.052a.38.38 0 0 0-.036-.043l-.002-.002c-.017-.018-.145-.15-.222-.289a.933.933 0 0 1-.054-.806c.085-.218.239-.39.367-.519l.529-.526a.75.75 0 0 1 1.008-.046c.067.055.241.135.526.194.263.054.525.072.67.072a3.034 3.034 0 0 0 3.042-3.026 3.034 3.034 0 0 0-3.042-3.026m0 2.459a.57.57 0 0 0-.572.567c0 .31.253.567.572.567a.57.57 0 0 0 .573-.567.57.57 0 0 0-.573-.567Zm-2.072.567a2.07 2.07 0 0 1 2.072-2.067 2.07 2.07 0 0 1 2.073 2.067 2.07 2.07 0 0 1-2.073 2.067 2.07 2.07 0 0 1-2.072-2.067Z" fill="currentColor" /></svg>, Bold: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path d="M14.208 11.093c.73 0 1.323-.59 1.323-1.317a1.32 1.32 0 0 0-1.323-1.317c-.73 0-1.322.59-1.322 1.317a1.32 1.32 0 0 0 1.322 1.317Z" fill="currentColor" /><path fillRule="evenodd" clipRule="evenodd" d="M3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536C19.072 2 16.714 2 12 2S4.929 2 3.464 3.464Zm10.744 10.088A3.784 3.784 0 0 0 18 9.776 3.784 3.784 0 0 0 14.208 6a3.784 3.784 0 0 0-3.791 3.776c0 .966.44 1.669.44 1.669L6.274 16.01c-.206.205-.494.738 0 1.23l.529.526c.205.176.723.422 1.146 0l.617-.614c.617.614 1.323.263 1.587-.088.441-.615-.088-1.23-.088-1.23l.177-.175c.846.843 1.587.351 1.851 0 .441-.615 0-1.23 0-1.23a1.019 1.019 0 0 0-.177-.239c-.138-.15-.222-.241.089-.551l.53-.527c.422.351 1.292.44 1.674.44Z" fill="currentColor" /></svg>, BoldDuotone: <svg width="inherit" height="inherit" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}><path opacity={0.5} d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z" fill="currentColor" /><path fillRule="evenodd" clipRule="evenodd" d="M18 9.776a3.784 3.784 0 0 1-3.792 3.776c-.382 0-1.252-.088-1.675-.439l-.529.527c-.311.31-.227.401-.089.551.058.063.125.136.177.24 0 0 .441.614 0 1.229-.264.351-1.005.843-1.851 0l-.177.175s.53.615.088 1.23c-.264.351-.97.702-1.587.088l-.617.614c-.423.422-.94.176-1.146 0l-.53-.527c-.493-.491-.205-1.024 0-1.229l4.586-4.566s-.441-.703-.441-1.669A3.784 3.784 0 0 1 14.208 6 3.784 3.784 0 0 1 18 9.776Zm-3.792 1.317c.73 0 1.323-.59 1.323-1.317a1.32 1.32 0 0 0-1.323-1.317c-.73 0-1.322.59-1.322 1.317a1.32 1.32 0 0 0 1.322 1.317Z" fill="currentColor" /></svg> }; return <IconWrapper icon={styles[iconStyle || 'Linear']} {...restProps} /> }; export default KeySquare